Set netif->flags appropriate for Ethernet device

This commit is contained in:
kieranm 2010-07-16 12:49:02 +00:00
parent c0b51ff573
commit 9c86a78404
1 changed files with 3 additions and 0 deletions

View File

@ -346,6 +346,9 @@ tapif_init(struct netif *netif)
netif->hwaddr_len = 6;
tapif->ethaddr = (struct eth_addr *)&(netif->hwaddr[0]);
netif->flags = NETIF_FLAG_BROADCAST | NETIF_FLAG_ETHARP | NETIF_FLAG_IGMP;
low_level_init(netif);
return ERR_OK;