diff options
author | Kris Katterjohn <kjak@users.sourceforge.net> | 2006-01-05 19:35:42 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-01-05 19:48:56 -0500 |
commit | 46f25dffbaba48c571d75f5f574f31978287b8d2 (patch) | |
tree | 080e8c4331faf36202bd92174e5e47d0a5d9aa47 /net/ipv6/sit.c | |
parent | e924283bf93989979f27ef4f1228c5925f584a0a (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/ipv6/sit.c')
-rw-r--r-- | net/ipv6/sit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv6/sit.c b/net/ipv6/sit.c index c3123c9e1a8e..577d49732b0f 100644 --- a/net/ipv6/sit.c +++ b/net/ipv6/sit.c | |||
@@ -33,6 +33,7 @@ | |||
33 | #include <asm/uaccess.h> | 33 | #include <asm/uaccess.h> |
34 | #include <linux/init.h> | 34 | #include <linux/init.h> |
35 | #include <linux/netfilter_ipv4.h> | 35 | #include <linux/netfilter_ipv4.h> |
36 | #include <linux/if_ether.h> | ||
36 | 37 | ||
37 | #include <net/sock.h> | 38 | #include <net/sock.h> |
38 | #include <net/snmp.h> | 39 | #include <net/snmp.h> |
@@ -720,7 +721,7 @@ static void ipip6_tunnel_setup(struct net_device *dev) | |||
720 | 721 | ||
721 | dev->type = ARPHRD_SIT; | 722 | dev->type = ARPHRD_SIT; |
722 | dev->hard_header_len = LL_MAX_HEADER + sizeof(struct iphdr); | 723 | dev->hard_header_len = LL_MAX_HEADER + sizeof(struct iphdr); |
723 | dev->mtu = 1500 - sizeof(struct iphdr); | 724 | dev->mtu = ETH_DATA_LEN - sizeof(struct iphdr); |
724 | dev->flags = IFF_NOARP; | 725 | dev->flags = IFF_NOARP; |
725 | dev->iflink = 0; | 726 | dev->iflink = 0; |
726 | dev->addr_len = 4; | 727 | dev->addr_len = 4; |