History

nefilter: eache: reduce struct size from 32 to 24 byte

Only "cache" needs to use ulong (its used with set_bit()), missed can use u16. Also add build-time assertion to ensure event bits fit.

Florian Westphal committed 9 years ago

Commit 01026ed1 parent c6dd9403 files · +8 −2Browse files

Showing the changes to include/uapi/linux (1 of 3 files). Show all

Unified · Split

include/uapi/linux/netfilter/nf_conntrack_common.h+3−0
@@ -119,6 +119,9 @@ enum ip_conntrack_events { · 118 unmodified lines
119 IPCT_NATSEQADJ = IPCT_SEQADJ,119 IPCT_NATSEQADJ = IPCT_SEQADJ,
120 IPCT_SECMARK, /* new security mark has been set */120 IPCT_SECMARK, /* new security mark has been set */
121 IPCT_LABEL, /* new connlabel has been set */121 IPCT_LABEL, /* new connlabel has been set */
122#ifdef __KERNEL__
123 __IPCT_MAX
124#endif
122};125};
123 126
124enum ip_conntrack_expect_events {127enum ip_conntrack_expect_events {