Patch by Sylvain Rochet: Fixed bug #36436: ethernet input flag not set on unix proj minimal mintapif

This commit is contained in:
Simon Goldschmidt 2012-05-11 22:42:32 +02:00
parent ec429c725a
commit b14da81fb9
1 changed files with 4 additions and 0 deletions

View File

@ -97,6 +97,10 @@ low_level_init(struct netif *netif)
mintapif->ethaddr->addr[4] = 5;
mintapif->ethaddr->addr[5] = 6;
/* 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. */
mintapif->fd = open(DEVTAP, O_RDWR);