mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 04:06:22 +00:00
[NETFILTER]: ctnetlink: set expected bit for related conntracks
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>
This commit is contained in:
parent
da8cadb31b
commit
f2a89004da
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue