Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJamal Hadi Salim <hadi@cyberus.ca>2004-06-05 00:41:55 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-06-05 00:41:55 -0700
commit21eca083b28bd98d7b8024188220db507a7fd67d (patch)
tree85cb26d925fe423d15102d12f0f3d9e8805ca54a
parent0d570a578ef9b5259662d7590a352edd5b3ae77a (diff)
[NET]: Add ARPHRD_NONE and use it in tun driver.
-rw-r--r--drivers/net/tun.c4
-rw-r--r--include/linux/if_arp.h1
2 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/tun.c b/drivers/net/tun.c
index 51f33a567e1e..d0fe0f656ea6 100644
--- a/drivers/net/tun.c
+++ b/drivers/net/tun.c
@@ -129,8 +129,8 @@ static void tun_net_init(struct net_device *dev)
dev->addr_len = 0;
dev->mtu = 1500;
- /* Type PPP seems most suitable */
- dev->type = ARPHRD_PPP;
+ /* Zero header length */
+ dev->type = ARPHRD_NONE;
dev->flags = IFF_POINTOPOINT | IFF_NOARP | IFF_MULTICAST;
dev->tx_queue_len = 10;
break;
diff --git a/include/linux/if_arp.h b/include/linux/if_arp.h
index 7d06a31e59e8..bbf49bcd7705 100644
--- a/include/linux/if_arp.h
+++ b/include/linux/if_arp.h
@@ -86,6 +86,7 @@
#define ARPHRD_IEEE80211_PRISM 802 /* IEEE 802.11 + Prism2 header */
#define ARPHRD_VOID 0xFFFF /* Void type, nothing is known */
+#define ARPHRD_NONE 0xFFFE /* zero header length */
/* ARP protocol opcodes. */
#define ARPOP_REQUEST 1 /* ARP request */