Extend the shared Ethernet backend enumeration with TAP and TUN slots
that Unix targets can implement.
#endif
#ifdef WITH_UAENET_PCAP
case UAENET_PCAP:
+ case UAENET_TAP:
+ case UAENET_TUN:
uaenet_trigger (vsd);
return;
#endif
#endif
#ifdef WITH_UAENET_PCAP
case UAENET_PCAP:
+ case UAENET_TAP:
+ case UAENET_TUN:
if (uaenet_open (vsd, ndd, user, gotfunc, getfunc, promiscuous, mac)) {
netmode = ndd->type;
return 1;
#endif
#ifdef WITH_UAENET_PCAP
case UAENET_PCAP:
+ case UAENET_TAP:
+ case UAENET_TUN:
return uaenet_close (vsd);
#endif
}
return;
#ifdef WITH_UAENET_PCAP
case UAENET_PCAP:
+ case UAENET_TAP:
+ case UAENET_TUN:
return uaenet_close_driver (ndd);
#endif
}
return sizeof (struct ethernet_data);
#ifdef WITH_UAENET_PCAP
case UAENET_PCAP:
+ case UAENET_TAP:
+ case UAENET_TUN:
return uaenet_getdatalenght ();
#endif
}
#define UAENET_SLIRP 1
#define UAENET_SLIRP_INBOUND 2
#define UAENET_PCAP 3
+#define UAENET_TAP 4
+#define UAENET_TUN 5
struct netdriverdata
{