xfrm6_output.c (29a26a56803855a79dbd028cd61abee56237d6e5) xfrm6_output.c (0c4b51f0054ce85c0ec578ab818f0631834573eb)
1/*
2 * xfrm6_output.c - Common IPsec encapsulation code for IPv6.
3 * Copyright (C) 2002 USAGI/WIDE Project
4 * Copyright (c) 2004 Herbert Xu <herbert@gondor.apana.org.au>
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version

--- 117 unchanged lines hidden (view full) ---

126
127#ifdef CONFIG_NETFILTER
128 IP6CB(skb)->flags |= IP6SKB_XFRM_TRANSFORMED;
129#endif
130
131 return xfrm_output(sk, skb);
132}
133
1/*
2 * xfrm6_output.c - Common IPsec encapsulation code for IPv6.
3 * Copyright (C) 2002 USAGI/WIDE Project
4 * Copyright (c) 2004 Herbert Xu <herbert@gondor.apana.org.au>
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version

--- 117 unchanged lines hidden (view full) ---

126
127#ifdef CONFIG_NETFILTER
128 IP6CB(skb)->flags |= IP6SKB_XFRM_TRANSFORMED;
129#endif
130
131 return xfrm_output(sk, skb);
132}
133
134static int __xfrm6_output(struct sock *sk, struct sk_buff *skb)
134static int __xfrm6_output(struct net *net, struct sock *sk, struct sk_buff *skb)
135{
136 struct dst_entry *dst = skb_dst(skb);
137 struct xfrm_state *x = dst->xfrm;
138 int mtu;
139
140#ifdef CONFIG_NETFILTER
141 if (!x) {
142 IP6CB(skb)->flags |= IP6SKB_REROUTED;

--- 34 unchanged lines hidden ---
135{
136 struct dst_entry *dst = skb_dst(skb);
137 struct xfrm_state *x = dst->xfrm;
138 int mtu;
139
140#ifdef CONFIG_NETFILTER
141 if (!x) {
142 IP6CB(skb)->flags |= IP6SKB_REROUTED;

--- 34 unchanged lines hidden ---