diff options
author | Vlad Yasevich <vladislav.yasevich@hp.com> | 2009-09-04 18:21:01 -0400 |
---|---|---|
committer | Vlad Yasevich <vladislav.yasevich@hp.com> | 2009-09-04 18:21:01 -0400 |
commit | a803c942303e6a4ef0ab6b80114529852cffa058 (patch) | |
tree | d1da47a93ef1683957256a582ed2fcb27d3e9a4b /include/net | |
parent | 4007cc88ceec8892b74792f0a10983b140beae72 (diff) |
sctp: Turn flags in 'sctp_packet' into bit fields
This shrinks the size of sctp_packet a little.
Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/sctp/structs.h | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/include/net/sctp/structs.h b/include/net/sctp/structs.h index b10612810f56..993cfff9218e 100644 --- a/include/net/sctp/structs.h +++ b/include/net/sctp/structs.h | |||
@@ -812,22 +812,12 @@ struct sctp_packet { | |||
812 | /* pointer to the auth chunk for this packet */ | 812 | /* pointer to the auth chunk for this packet */ |
813 | struct sctp_chunk *auth; | 813 | struct sctp_chunk *auth; |
814 | 814 | ||
815 | /* This packet contains a COOKIE-ECHO chunk. */ | 815 | u8 has_cookie_echo:1, /* This packet contains a COOKIE-ECHO chunk. */ |
816 | __u8 has_cookie_echo; | 816 | has_sack:1, /* This packet contains a SACK chunk. */ |
817 | 817 | has_auth:1, /* This packet contains an AUTH chunk */ | |
818 | /* This packet contains a SACK chunk. */ | 818 | has_data:1, /* This packet contains at least 1 DATA chunk */ |
819 | __u8 has_sack; | 819 | ipfragok:1, /* So let ip fragment this packet */ |
820 | 820 | malloced:1; /* Is it malloced? */ | |
821 | /* This packet contains an AUTH chunk */ | ||
822 | __u8 has_auth; | ||
823 | |||
824 | /* This packet contains at least 1 DATA chunk */ | ||
825 | __u8 has_data; | ||
826 | |||
827 | /* SCTP cannot fragment this packet. So let ip fragment it. */ | ||
828 | __u8 ipfragok; | ||
829 | |||
830 | __u8 malloced; | ||
831 | }; | 821 | }; |
832 | 822 | ||
833 | struct sctp_packet *sctp_packet_init(struct sctp_packet *, | 823 | struct sctp_packet *sctp_packet_init(struct sctp_packet *, |