[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>
This commit is contained in:

committed by
David S. Miller

parent
e924283bf9
commit
46f25dffba
@@ -108,6 +108,7 @@
|
||||
#include <linux/mroute.h>
|
||||
#include <linux/init.h>
|
||||
#include <linux/netfilter_ipv4.h>
|
||||
#include <linux/if_ether.h>
|
||||
|
||||
#include <net/sock.h>
|
||||
#include <net/ip.h>
|
||||
@@ -786,7 +787,7 @@ static void ipip_tunnel_setup(struct net_device *dev)
|
||||
|
||||
dev->type = ARPHRD_TUNNEL;
|
||||
dev->hard_header_len = LL_MAX_HEADER + sizeof(struct iphdr);
|
||||
dev->mtu = 1500 - sizeof(struct iphdr);
|
||||
dev->mtu = ETH_DATA_LEN - sizeof(struct iphdr);
|
||||
dev->flags = IFF_NOARP;
|
||||
dev->iflink = 0;
|
||||
dev->addr_len = 4;
|
||||
|
Reference in New Issue
Block a user