xfrm4_output.c (2fe5de9ce7d57498abc14b375cad2fcf8c3ee6cc) xfrm4_output.c (60ff746739bf805a912484643c720b6124826140)
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.

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

20
21static int xfrm4_tunnel_check_size(struct sk_buff *skb)
22{
23 int mtu, ret = 0;
24
25 if (IPCB(skb)->flags & IPSKB_XFRM_TUNNEL_SIZE)
26 goto out;
27
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.

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

20
21static int xfrm4_tunnel_check_size(struct sk_buff *skb)
22{
23 int mtu, ret = 0;
24
25 if (IPCB(skb)->flags & IPSKB_XFRM_TUNNEL_SIZE)
26 goto out;
27
28 if (!(ip_hdr(skb)->frag_off & htons(IP_DF)) || skb->local_df)
28 if (!(ip_hdr(skb)->frag_off & htons(IP_DF)) || skb->ignore_df)
29 goto out;
30
31 mtu = dst_mtu(skb_dst(skb));
32 if (skb->len > mtu) {
33 if (skb->sk)
34 xfrm_local_error(skb, mtu);
35 else
36 icmp_send(skb, ICMP_DEST_UNREACH,

--- 71 unchanged lines hidden ---
29 goto out;
30
31 mtu = dst_mtu(skb_dst(skb));
32 if (skb->len > mtu) {
33 if (skb->sk)
34 xfrm_local_error(skb, mtu);
35 else
36 icmp_send(skb, ICMP_DEST_UNREACH,

--- 71 unchanged lines hidden ---