diff options
author | Patrick McHardy <kaber@trash.net> | 2006-01-07 02:06:30 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-01-07 15:57:37 -0500 |
commit | eb9c7ebe6980c41cf6ae889e301c3b49f473ee9f (patch) | |
tree | 419103d15b9de9c26c8400c698625231df55da91 /net/dccp | |
parent | b59c270104f03960069596722fea70340579244d (diff) |
[NETFILTER]: Handle NAT in IPsec policy checks
Handle NAT of decapsulated IPsec packets by reconstructing the struct flowi
of the original packet from the conntrack information for IPsec policy
checks.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dccp')
-rw-r--r-- | net/dccp/ipv4.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dccp/ipv4.c b/net/dccp/ipv4.c index 23ba177c1150..00f983226672 100644 --- a/net/dccp/ipv4.c +++ b/net/dccp/ipv4.c | |||
@@ -986,6 +986,7 @@ int dccp_v4_rcv(struct sk_buff *skb) | |||
986 | 986 | ||
987 | if (!xfrm4_policy_check(sk, XFRM_POLICY_IN, skb)) | 987 | if (!xfrm4_policy_check(sk, XFRM_POLICY_IN, skb)) |
988 | goto discard_and_relse; | 988 | goto discard_and_relse; |
989 | nf_reset(skb); | ||
989 | 990 | ||
990 | return sk_receive_skb(sk, skb); | 991 | return sk_receive_skb(sk, skb); |
991 | 992 | ||
@@ -1099,7 +1100,6 @@ int dccp_v4_destroy_sock(struct sock *sk) | |||
1099 | kfree_skb(sk->sk_send_head); | 1100 | kfree_skb(sk->sk_send_head); |
1100 | sk->sk_send_head = NULL; | 1101 | sk->sk_send_head = NULL; |
1101 | } | 1102 | } |
1102 | nf_reset(skb); | ||
1103 | 1103 | ||
1104 | /* Clean up a referenced DCCP bind bucket. */ | 1104 | /* Clean up a referenced DCCP bind bucket. */ |
1105 | if (inet_csk(sk)->icsk_bind_hash != NULL) | 1105 | if (inet_csk(sk)->icsk_bind_hash != NULL) |