From f75be85eeaf8b1e5b32ae8a73adcb0752a716094 Mon Sep 17 00:00:00 2001 From: fbernon Date: Fri, 30 Mar 2007 10:32:57 +0000 Subject: [PATCH] Add NETIF_FLAG_ETHARP flag and comments in this skeleton. --- src/netif/ethernetif.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/netif/ethernetif.c b/src/netif/ethernetif.c index 687bd70f..a7eb6501 100644 --- a/src/netif/ethernetif.c +++ b/src/netif/ethernetif.c @@ -78,8 +78,9 @@ low_level_init(struct netif *netif) /* maximum transfer unit */ netif->mtu = 1500; - /* broadcast capability */ - netif->flags = NETIF_FLAG_BROADCAST; + /* device capabilities */ + /* don't set NETIF_FLAG_ETHARP if this device is not an ethernet one */ + netif->flags = NETIF_FLAG_BROADCAST | NETIF_FLAG_ETHARP; /* Do whatever else is needed to initialize interface. */ }