aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/ipip.c
diff options
context:
space:
mode:
authorKris Katterjohn <kjak@users.sourceforge.net>2006-01-05 19:35:42 -0500
committerDavid S. Miller <davem@sunset.davemloft.net>2006-01-05 19:48:56 -0500
commit46f25dffbaba48c571d75f5f574f31978287b8d2 (patch)
tree080e8c4331faf36202bd92174e5e47d0a5d9aa47 /net/ipv4/ipip.c
parente924283bf93989979f27ef4f1228c5925f584a0a (diff)
[NET]: Change 1500 to ETH_DATA_LEN in some files
These patches add the header linux/if_ether.h and change 1500 to ETH_DATA_LEN in some files. Signed-off-by: Kris Katterjohn <kjak@users.sourceforge.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/ipip.c')
-rw-r--r--net/ipv4/ipip.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv4/ipip.c b/net/ipv4/ipip.c
index c05c1df0bb04..35571cff81c6 100644
--- a/net/ipv4/ipip.c
+++ b/net/ipv4/ipip.c
@@ -108,6 +108,7 @@
108#include <linux/mroute.h> 108#include <linux/mroute.h>
109#include <linux/init.h> 109#include <linux/init.h>
110#include <linux/netfilter_ipv4.h> 110#include <linux/netfilter_ipv4.h>
111#include <linux/if_ether.h>
111 112
112#include <net/sock.h> 113#include <net/sock.h>
113#include <net/ip.h> 114#include <net/ip.h>
@@ -786,7 +787,7 @@ static void ipip_tunnel_setup(struct net_device *dev)
786 787
787 dev->type = ARPHRD_TUNNEL; 788 dev->type = ARPHRD_TUNNEL;
788 dev->hard_header_len = LL_MAX_HEADER + sizeof(struct iphdr); 789 dev->hard_header_len = LL_MAX_HEADER + sizeof(struct iphdr);
789 dev->mtu = 1500 - sizeof(struct iphdr); 790 dev->mtu = ETH_DATA_LEN - sizeof(struct iphdr);
790 dev->flags = IFF_NOARP; 791 dev->flags = IFF_NOARP;
791 dev->iflink = 0; 792 dev->iflink = 0;
792 dev->addr_len = 4; 793 dev->addr_len = 4;