The __IPS_MAX_BIT is used in __ctnetlink_change_status as the max bit value. When add new bit IPS_OFFLOAD_BIT whose value is 14, we should increase the __IPS_MAX_BIT too, from 14 to 15. There is no any bug in current codes, although it lost one loop in __ctnetlink_change_status. Because the new bit IPS_OFFLOAD_BIT belongs the IPS_UNCHANGEABLE_MASK.
Showing the changes to include/uapi/linux (1 of 1 file). Show all
Unified · Split
| @@ -112,7 +112,7 @@ enum ip_conntrack_status { · 111 unmodified lines | |||
| 112 | IPS_EXPECTED | IPS_CONFIRMED | IPS_DYING | | 112 | IPS_EXPECTED | IPS_CONFIRMED | IPS_DYING | |
| 113 | IPS_SEQ_ADJUST | IPS_TEMPLATE | IPS_OFFLOAD), | 113 | IPS_SEQ_ADJUST | IPS_TEMPLATE | IPS_OFFLOAD), |
| 114 | 114 | ||
| 115 | __IPS_MAX_BIT = 14, | 115 | __IPS_MAX_BIT = 15, |
| 116 | }; | 116 | }; |
| 117 | 117 | ||
| 118 | /* Connection tracking event types */ | 118 | /* Connection tracking event types */ |