From b14da81fb95c745f24f757f23e22529188f22cc3 Mon Sep 17 00:00:00 2001 From: Simon Goldschmidt Date: Fri, 11 May 2012 22:42:32 +0200 Subject: [PATCH] Patch by Sylvain Rochet: Fixed bug #36436: ethernet input flag not set on unix proj minimal mintapif --- ports/unix/proj/minimal/mintapif.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ports/unix/proj/minimal/mintapif.c b/ports/unix/proj/minimal/mintapif.c index 1570b1b..9f18899 100644 --- a/ports/unix/proj/minimal/mintapif.c +++ b/ports/unix/proj/minimal/mintapif.c @@ -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);