瀏覽代碼

[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: Marcus Sundberg <marcus@ingate.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Marcus Sundberg 19 年之前
父節點
當前提交
b633ad5fbf
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      net/ipv4/netfilter/ip_conntrack_netlink.c
  2. 1 1
      net/netfilter/nf_conntrack_netlink.c

+ 1 - 1
net/ipv4/netfilter/ip_conntrack_netlink.c

@@ -1216,7 +1216,7 @@ static int ctnetlink_expect_event(struct notifier_block *this,
 
 
 	b = skb->tail;
 	b = skb->tail;
 
 
-	type |= NFNL_SUBSYS_CTNETLINK << 8;
+	type |= NFNL_SUBSYS_CTNETLINK_EXP << 8;
 	nlh   = NLMSG_PUT(skb, 0, 0, type, sizeof(struct nfgenmsg));
 	nlh   = NLMSG_PUT(skb, 0, 0, type, sizeof(struct nfgenmsg));
 	nfmsg = NLMSG_DATA(nlh);
 	nfmsg = NLMSG_DATA(nlh);
 
 

+ 1 - 1
net/netfilter/nf_conntrack_netlink.c

@@ -1232,7 +1232,7 @@ static int ctnetlink_expect_event(struct notifier_block *this,
 
 
 	b = skb->tail;
 	b = skb->tail;
 
 
-	type |= NFNL_SUBSYS_CTNETLINK << 8;
+	type |= NFNL_SUBSYS_CTNETLINK_EXP << 8;
 	nlh   = NLMSG_PUT(skb, 0, 0, type, sizeof(struct nfgenmsg));
 	nlh   = NLMSG_PUT(skb, 0, 0, type, sizeof(struct nfgenmsg));
 	nfmsg = NLMSG_DATA(nlh);
 	nfmsg = NLMSG_DATA(nlh);