diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2012-03-23 00:04:53 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2012-03-23 00:52:08 +0100 |
commit | 60b5f8f745739a4789395648595ed31ede582448 (patch) | |
tree | 9b818ddc4cea729301110bbbc082c010f30dd691 /drivers/net/ppp/pptp.c | |
parent | eeb4cb952386aac764a5cf4cf2490e50a24a8880 (diff) |
netfilter: nf_conntrack: permanently attach timeout policy to conntrack
We need to permanently attach the timeout policy to the conntrack,
otherwise we may apply the custom timeout policy inconsistently.
Without this patch, the following example:
nfct timeout add test inet icmp timeout 100
iptables -I PREROUTING -t raw -p icmp -s 1.1.1.1 -j CT --timeout test
Will only apply the custom timeout policy to outgoing packets from
1.1.1.1, but not to reply packets from 2.2.2.2 going to 1.1.1.1.
To fix this issue, this patch modifies the current logic to attach the
timeout policy when the first packet is seen (which is when the
conntrack entry is created). Then, we keep using the attached timeout
policy until the conntrack entry is destroyed.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'drivers/net/ppp/pptp.c')
0 files changed, 0 insertions, 0 deletions