Skip to content

Commit

Permalink
[NETFILTER]: ctnetlink: Fix subsystem used for expectation events
Browse files Browse the repository at this point in the history
The ctnetlink expectation events should use the NFNL_SUBSYS_CTNETLINK_EXP
subsystem, not NFNL_SUBSYS_CTNETLINK.

Signed-off-by: Marcus Sundberg <[email protected]>
Signed-off-by: Patrick McHardy <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Marcus Sundberg authored and David S. Miller committed Feb 5, 2006
1 parent fa60cf7 commit b633ad5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion net/ipv4/netfilter/ip_conntrack_netlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion net/netfilter/nf_conntrack_netlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit b633ad5

Please sign in to comment.