Commit 9237ccbc authored by Wei Yongjun's avatar Wei Yongjun Committed by Vlad Yasevich

sctp: turn flags in 'struct sctp_association' into bit fields

This shrinks the size of struct sctp_association a little.
Signed-off-by: default avatarWei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: default avatarVlad Yasevich <vladislav.yasevich@hp.com>
parent 72388433
...@@ -1568,13 +1568,13 @@ struct sctp_association { ...@@ -1568,13 +1568,13 @@ struct sctp_association {
__u32 sack_cnt; __u32 sack_cnt;
/* These are capabilities which our peer advertised. */ /* These are capabilities which our peer advertised. */
__u8 ecn_capable; /* Can peer do ECN? */ __u8 ecn_capable:1, /* Can peer do ECN? */
__u8 ipv4_address; /* Peer understands IPv4 addresses? */ ipv4_address:1, /* Peer understands IPv4 addresses? */
__u8 ipv6_address; /* Peer understands IPv6 addresses? */ ipv6_address:1, /* Peer understands IPv6 addresses? */
__u8 hostname_address;/* Peer understands DNS addresses? */ hostname_address:1, /* Peer understands DNS addresses? */
__u8 asconf_capable; /* Does peer support ADDIP? */ asconf_capable:1, /* Does peer support ADDIP? */
__u8 prsctp_capable; /* Can peer do PR-SCTP? */ prsctp_capable:1, /* Can peer do PR-SCTP? */
__u8 auth_capable; /* Is peer doing SCTP-AUTH? */ auth_capable:1; /* Is peer doing SCTP-AUTH? */
__u32 adaptation_ind; /* Adaptation Code point. */ __u32 adaptation_ind; /* Adaptation Code point. */
...@@ -1913,11 +1913,8 @@ struct sctp_association { ...@@ -1913,11 +1913,8 @@ struct sctp_association {
__u16 active_key_id; __u16 active_key_id;
/* Need to send an ECNE Chunk? */ __u8 need_ecne:1, /* Need to send an ECNE Chunk? */
char need_ecne; temp:1; /* Is it a temporary association? */
/* Is it a temporary association? */
char temp;
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment