Skip to content

Commit 64e6dd1

Browse files
gfreewindummakynes
authored andcommitted
netfilter: nf_conntrack: Increase __IPS_MAX_BIT with new bit IPS_OFFLOAD_BIT
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. Signed-off-by: Gao Feng <[email protected]> Signed-off-by: Pablo Neira Ayuso <[email protected]>
1 parent 82e20b4 commit 64e6dd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/uapi/linux/netfilter/nf_conntrack_common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ enum ip_conntrack_status {
112112
IPS_EXPECTED | IPS_CONFIRMED | IPS_DYING |
113113
IPS_SEQ_ADJUST | IPS_TEMPLATE | IPS_OFFLOAD),
114114

115-
__IPS_MAX_BIT = 14,
115+
__IPS_MAX_BIT = 15,
116116
};
117117

118118
/* Connection tracking event types */

0 commit comments

Comments
 (0)