Commit a803c942 authored by Vlad Yasevich's avatar Vlad Yasevich

sctp: Turn flags in 'sctp_packet' into bit fields

This shrinks the size of sctp_packet a little.
Signed-off-by: default avatarVlad Yasevich <vladislav.yasevich@hp.com>
parent 4007cc88
...@@ -812,22 +812,12 @@ struct sctp_packet { ...@@ -812,22 +812,12 @@ struct sctp_packet {
/* pointer to the auth chunk for this packet */ /* pointer to the auth chunk for this packet */
struct sctp_chunk *auth; struct sctp_chunk *auth;
/* This packet contains a COOKIE-ECHO chunk. */ u8 has_cookie_echo:1, /* This packet contains a COOKIE-ECHO chunk. */
__u8 has_cookie_echo; has_sack:1, /* This packet contains a SACK chunk. */
has_auth:1, /* This packet contains an AUTH chunk */
/* This packet contains a SACK chunk. */ has_data:1, /* This packet contains at least 1 DATA chunk */
__u8 has_sack; ipfragok:1, /* So let ip fragment this packet */
malloced:1; /* Is it malloced? */
/* This packet contains an AUTH chunk */
__u8 has_auth;
/* This packet contains at least 1 DATA chunk */
__u8 has_data;
/* SCTP cannot fragment this packet. So let ip fragment it. */
__u8 ipfragok;
__u8 malloced;
}; };
struct sctp_packet *sctp_packet_init(struct sctp_packet *, struct sctp_packet *sctp_packet_init(struct sctp_packet *,
......
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