xfrm6_output.c (1bfcb10f670f5ff5e1d9f53e59680573524cb142) | xfrm6_output.c (13996378e6585fb25e582afe7489bf52dde78deb) |
---|---|
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 --- 36 unchanged lines hidden (view full) --- 45 46static inline int xfrm6_output_one(struct sk_buff *skb) 47{ 48 struct dst_entry *dst = skb->dst; 49 struct xfrm_state *x = dst->xfrm; 50 struct ipv6hdr *iph; 51 int err; 52 | 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 --- 36 unchanged lines hidden (view full) --- 45 46static inline int xfrm6_output_one(struct sk_buff *skb) 47{ 48 struct dst_entry *dst = skb->dst; 49 struct xfrm_state *x = dst->xfrm; 50 struct ipv6hdr *iph; 51 int err; 52 |
53 if (x->mode->flags & XFRM_MODE_FLAG_TUNNEL) { | 53 if (x->outer_mode->flags & XFRM_MODE_FLAG_TUNNEL) { |
54 err = xfrm6_tunnel_check_size(skb); 55 if (err) 56 goto error_nolock; 57 } 58 59 err = xfrm_output(skb); 60 if (err) 61 goto error_nolock; --- 78 unchanged lines hidden --- | 54 err = xfrm6_tunnel_check_size(skb); 55 if (err) 56 goto error_nolock; 57 } 58 59 err = xfrm_output(skb); 60 if (err) 61 goto error_nolock; --- 78 unchanged lines hidden --- |