netfilter: uapi: correct UNTRACKED conntrack state bit number
authorFlorian Westphal <fw@strlen.de>
Wed, 20 Dec 2017 11:08:33 +0000 (12:08 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 21 Dec 2017 08:45:34 +0000 (09:45 +0100)
commit4c82fd0abb87e20d0d68ef5237e74732352806c8
tree0557b9afa6272edfd187924a0349b6ba55fa3ffd
parent24c0df82ef7919e4d10cf2e4e65d368eb2e8ea21
netfilter: uapi: correct UNTRACKED conntrack state bit number

nft_ct exposes this bit to userspace.  This used to be

  #define NF_CT_STATE_UNTRACKED_BIT              (1 << (IP_CT_NUMBER + 1))
  (IP_CT_NUMBER is 5, so this was 0x40)

.. but this got changed to 8 (0x100) when the untracked object got removed.
Replace this with a literal 6 to prevent further incompatible changes
in case IP_CT_NUMBER ever increases.

Fixes: cc41c84b7e7f2 ("netfilter: kill the fake untracked conntrack objects")
Reported-by: Li Shuang <shuali@redhat.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/uapi/linux/netfilter/nf_conntrack_common.h