aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/ipmr.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/ipmr.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/ipmr.c')
-rw-r--r--net/ipv4/ipmr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv4/ipmr.c b/net/ipv4/ipmr.c
index caa3b7d2e48a..9a5c0ce7ff35 100644
--- a/net/ipv4/ipmr.c
+++ b/net/ipv4/ipmr.c
@@ -49,6 +49,7 @@
49#include <linux/seq_file.h> 49#include <linux/seq_file.h>
50#include <linux/mroute.h> 50#include <linux/mroute.h>
51#include <linux/init.h> 51#include <linux/init.h>
52#include <linux/if_ether.h>
52#include <net/ip.h> 53#include <net/ip.h>
53#include <net/protocol.h> 54#include <net/protocol.h>
54#include <linux/skbuff.h> 55#include <linux/skbuff.h>
@@ -193,7 +194,7 @@ static struct net_device_stats *reg_vif_get_stats(struct net_device *dev)
193static void reg_vif_setup(struct net_device *dev) 194static void reg_vif_setup(struct net_device *dev)
194{ 195{
195 dev->type = ARPHRD_PIMREG; 196 dev->type = ARPHRD_PIMREG;
196 dev->mtu = 1500 - sizeof(struct iphdr) - 8; 197 dev->mtu = ETH_DATA_LEN - sizeof(struct iphdr) - 8;
197 dev->flags = IFF_NOARP; 198 dev->flags = IFF_NOARP;
198 dev->hard_start_xmit = reg_vif_xmit; 199 dev->hard_start_xmit = reg_vif_xmit;
199 dev->get_stats = reg_vif_get_stats; 200 dev->get_stats = reg_vif_get_stats;