xfrm4_output.c (29a26a56803855a79dbd028cd61abee56237d6e5) | xfrm4_output.c (0c4b51f0054ce85c0ec578ab818f0631834573eb) |
---|---|
1/* 2 * xfrm4_output.c - Common IPsec encapsulation code for IPv4. 3 * Copyright (c) 2004 Herbert Xu <herbert@gondor.apana.org.au> 4 * 5 * This program is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU General Public License 7 * as published by the Free Software Foundation; either version 8 * 2 of the License, or (at your option) any later version. --- 66 unchanged lines hidden (view full) --- 75 76#ifdef CONFIG_NETFILTER 77 IPCB(skb)->flags |= IPSKB_XFRM_TRANSFORMED; 78#endif 79 80 return xfrm_output(sk, skb); 81} 82 | 1/* 2 * xfrm4_output.c - Common IPsec encapsulation code for IPv4. 3 * Copyright (c) 2004 Herbert Xu <herbert@gondor.apana.org.au> 4 * 5 * This program is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU General Public License 7 * as published by the Free Software Foundation; either version 8 * 2 of the License, or (at your option) any later version. --- 66 unchanged lines hidden (view full) --- 75 76#ifdef CONFIG_NETFILTER 77 IPCB(skb)->flags |= IPSKB_XFRM_TRANSFORMED; 78#endif 79 80 return xfrm_output(sk, skb); 81} 82 |
83static int __xfrm4_output(struct sock *sk, struct sk_buff *skb) | 83static int __xfrm4_output(struct net *net, struct sock *sk, struct sk_buff *skb) |
84{ 85 struct xfrm_state *x = skb_dst(skb)->xfrm; 86 87#ifdef CONFIG_NETFILTER 88 if (!x) { 89 IPCB(skb)->flags |= IPSKB_REROUTED; 90 return dst_output(sk, skb); 91 } --- 22 unchanged lines hidden --- | 84{ 85 struct xfrm_state *x = skb_dst(skb)->xfrm; 86 87#ifdef CONFIG_NETFILTER 88 if (!x) { 89 IPCB(skb)->flags |= IPSKB_REROUTED; 90 return dst_output(sk, skb); 91 } --- 22 unchanged lines hidden --- |