Skip to content

Commit

Permalink
[NETFILTER]: ctnetlink: set expected bit for related conntracks
Browse files Browse the repository at this point in the history
This patch is a fix. It sets IPS_EXPECTED for related conntracks.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Pablo Neira Ayuso authored and David S. Miller committed Dec 14, 2007
1 parent da8cadb commit f2a8900
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion net/netfilter/nf_conntrack_netlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -1024,8 +1024,10 @@ ctnetlink_create_conntrack(struct nlattr *cda[],
}

/* setup master conntrack: this is a confirmed expectation */
if (master_ct)
if (master_ct) {
__set_bit(IPS_EXPECTED_BIT, &ct->status);
ct->master = master_ct;
}

add_timer(&ct->timeout);
nf_conntrack_hash_insert(ct);
Expand Down

0 comments on commit f2a8900

Please sign in to comment.