Skip to content

Commit

Permalink
[NETFILTER]: nf_conntrack: attach conntrack to TCP RST generated by i…
Browse files Browse the repository at this point in the history
…p6t_REJECT

TCP RSTs generated by the REJECT target should be associated with the
conntrack of the original TCP packet. Since the conntrack entry is
usually not is the hash tables, it must be manually attached.

Signed-off-by: Yasuyuki Kozakai <[email protected]>
Signed-off-by: Patrick McHardy <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
yasuyuki5 authored and davem330 committed Feb 15, 2006
1 parent 7d3cdc6 commit 08857fa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/ipv6/netfilter/ip6t_REJECT.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,8 @@ static void send_reset(struct sk_buff *oldskb)
csum_partial((char *)tcph,
sizeof(struct tcphdr), 0));

nf_ct_attach(nskb, oldskb);

NF_HOOK(PF_INET6, NF_IP6_LOCAL_OUT, nskb, NULL, nskb->dst->dev,
dst_output);
}
Expand Down

0 comments on commit 08857fa

Please sign in to comment.