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 | 119 | IPCT_NATSEQADJ = IPCT_SEQADJ, |
| 120 | 120 | IPCT_SECMARK, /* new security mark has been set */ |
| 121 | 121 | IPCT_LABEL, /* new connlabel has been set */ |
| 122 | +#ifdef __KERNEL__ | |
| 123 | + __IPCT_MAX | |
| 124 | +#endif | |
| 122 | 125 | }; |
| 123 | 126 | |
| 124 | 127 | enum ip_conntrack_expect_events { |