xfrm4_output.c (1bfcb10f670f5ff5e1d9f53e59680573524cb142) xfrm4_output.c (13996378e6585fb25e582afe7489bf52dde78deb)
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.

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

42
43static inline int xfrm4_output_one(struct sk_buff *skb)
44{
45 struct dst_entry *dst = skb->dst;
46 struct xfrm_state *x = dst->xfrm;
47 struct iphdr *iph;
48 int err;
49
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.

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

42
43static inline int xfrm4_output_one(struct sk_buff *skb)
44{
45 struct dst_entry *dst = skb->dst;
46 struct xfrm_state *x = dst->xfrm;
47 struct iphdr *iph;
48 int err;
49
50 if (x->mode->flags & XFRM_MODE_FLAG_TUNNEL) {
50 if (x->outer_mode->flags & XFRM_MODE_FLAG_TUNNEL) {
51 err = xfrm4_tunnel_check_size(skb);
52 if (err)
53 goto error_nolock;
54 }
55
56 err = xfrm_output(skb);
57 if (err)
58 goto error_nolock;

--- 87 unchanged lines hidden ---
51 err = xfrm4_tunnel_check_size(skb);
52 if (err)
53 goto error_nolock;
54 }
55
56 err = xfrm_output(skb);
57 if (err)
58 goto error_nolock;

--- 87 unchanged lines hidden ---