From d413223f1cf2b6e09198969fefeceb3fc8f62bb2 Mon Sep 17 00:00:00 2001 From: Andy Bavier Date: Mon, 10 Mar 2008 21:28:47 +0000 Subject: [PATCH] Fixed MTU problem --- linux-2.6-593-egre.patch | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/linux-2.6-593-egre.patch b/linux-2.6-593-egre.patch index 78c8b3eac..9d02811fc 100644 --- a/linux-2.6-593-egre.patch +++ b/linux-2.6-593-egre.patch @@ -2122,7 +2122,7 @@ diff -Nurp linux-2.6.22-592/net/ipv4/ip_gre.c linux-2.6.22-593/net/ipv4/ip_gre.c static int ipgre_tunnel_init(struct net_device *dev) { struct net_device *tdev = NULL; -@@ -1172,8 +1486,10 @@ static int ipgre_tunnel_init(struct net_ +@@ -1172,8 +1486,12 @@ static int ipgre_tunnel_init(struct net_ tunnel->dev = dev; strcpy(tunnel->parms.name, dev->name); @@ -2131,6 +2131,8 @@ diff -Nurp linux-2.6.22-592/net/ipv4/ip_gre.c linux-2.6.22-593/net/ipv4/ip_gre.c + if (tunnel->parms.proto_type != ETH_P_ETH) { + memcpy(dev->dev_addr, &tunnel->parms.iph.saddr, 4); + memcpy(dev->broadcast, &tunnel->parms.iph.daddr, 4); ++ } else { ++ addend += ETH_HLEN; + } /* Guess output device to choose reasonable mtu and hard_header_len */ -- 2.47.0