Commit b7de196e authored by Florian Westphal's avatar Florian Westphal Committed by Cheng Jian
Browse files

netfilter: ctnetlink: fix dump of the expect mask attribute



stable inclusion
from linux-4.19.184
commit 2ca21906400986780cb5216e8bdd27201fd4a780

--------------------------------

[ Upstream commit b58f33d4 ]

Before this change, the mask is never included in the netlink message, so
"conntrack -E expect" always prints 0.0.0.0.

In older kernels the l3num callback struct was passed as argument, based
on tuple->src.l3num. After the l3num indirection got removed, the call
chain is based on m.src.l3num, but this value is 0xffff.

Init l3num to the correct value.

Fixes: f957be9d ("netfilter: conntrack: remove ctnetlink callbacks from l3 protocol trackers")
Signed-off-by: default avatarFlorian Westphal <fw@strlen.de>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: default avatarCheng Jian <cj.chengjian@huawei.com>
parent 36248877
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment