]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_conntrack: Increase __IPS_MAX_BIT with new bit IPS_OFFLOAD_BIT
authorGao Feng <gfree.wind@vip.163.com>
Thu, 7 Jun 2018 10:15:14 +0000 (18:15 +0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 7 Jun 2018 10:45:44 +0000 (12:45 +0200)
commit58d65ac14c30955be9e0adefb6797310499bab56
tree5348ef82b482c21575164b7878845bec9d2e0fc7
parent94b903f3a2106335436527c44519099c8111c240
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 <gfree.wind@vip.163.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/uapi/linux/netfilter/nf_conntrack_common.h