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.
Showing the changes to include/uapi/linux (1 of 3 files). Show all
Unified · Split
| @@ -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 | ||
| 124 | enum ip_conntrack_expect_events { | 127 | enum ip_conntrack_expect_events { |