if (!strcmp(netdev_dev_get_type(netdev_dev_), "tap")) {
netdev->fd = netdev_dev->state.tap.fd;
-
} else if (ethertype != NETDEV_ETH_TYPE_NONE) {
struct sockaddr_ll sll;
int protocol;
if (error) {
goto error;
}
+ } else {
+ netdev->fd = -1;
}
*netdevp = &netdev->netdev;