Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b633ad5f authored by Marcus Sundberg's avatar Marcus Sundberg Committed by David S. Miller
Browse files

[NETFILTER]: ctnetlink: Fix subsystem used for expectation events



The ctnetlink expectation events should use the NFNL_SUBSYS_CTNETLINK_EXP
subsystem, not NFNL_SUBSYS_CTNETLINK.

Signed-off-by: default avatarMarcus Sundberg <marcus@ingate.com>
Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent fa60cf7f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1216,7 +1216,7 @@ static int ctnetlink_expect_event(struct notifier_block *this,

	b = skb->tail;

	type |= NFNL_SUBSYS_CTNETLINK << 8;
	type |= NFNL_SUBSYS_CTNETLINK_EXP << 8;
	nlh   = NLMSG_PUT(skb, 0, 0, type, sizeof(struct nfgenmsg));
	nfmsg = NLMSG_DATA(nlh);

+1 −1
Original line number Diff line number Diff line
@@ -1232,7 +1232,7 @@ static int ctnetlink_expect_event(struct notifier_block *this,

	b = skb->tail;

	type |= NFNL_SUBSYS_CTNETLINK << 8;
	type |= NFNL_SUBSYS_CTNETLINK_EXP << 8;
	nlh   = NLMSG_PUT(skb, 0, 0, type, sizeof(struct nfgenmsg));
	nfmsg = NLMSG_DATA(nlh);