Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Kernel v2.6.24.4 /net/ipv6/xfrm6_output.c

Filename:/net/ipv6/xfrm6_output.c
Lines Added:1
Lines Deleted:1
Also changed in: (Previous) 2.6.24.4-rc3  2.6.24.4-rc2  2.6.24.4-rc1  2.6.24-git22  2.6.24-git21  2.6.24-git20 
(Following) 2.6.24.5  2.6.24.6  2.6.24.7  2.6.25-rc7  2.6.25-rc7-git3  2.6.25-rc7-git4 

Location
[  2.6.24.4
  [  net
    [  ipv6
       o  xfrm6_output.c

Patch

diff --git a/net/ipv6/xfrm6_output.c b/net/ipv6/xfrm6_output.c
index 6569767..dc22909 100644
--- a/net/ipv6/xfrm6_output.c
+++ b/net/ipv6/xfrm6_output.c
@@ -34,7 +34,7 @@ static int xfrm6_tunnel_check_size(struct sk_buff *skb)
    if (mtu < IPV6_MIN_MTU)
       mtu = IPV6_MIN_MTU;
 
-   if (skb->len > mtu) {
+   if (!skb->local_df && skb->len > mtu) {
       skb->dev = dst->dev;
       icmpv6_send(skb, ICMPV6_PKT_TOOBIG, 0, mtu, skb->dev);
       ret = -EMSGSIZE;


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.