mirror of
https://github.com/simh/simh.git
synced 2026-01-30 13:27:50 +00:00
@@ -2921,8 +2921,10 @@ if (0 == strncmp("tap:", savname, 4)) {
|
||||
tun = -1;
|
||||
}
|
||||
else {
|
||||
*eth_api = ETH_API_TAP;
|
||||
*fd_handle = (SOCKET)tun;
|
||||
strcpy(savname, ifr.ifr_name);
|
||||
return SCPE_OK;
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -2979,6 +2981,11 @@ if (0 == strncmp("tap:", savname, 4)) {
|
||||
close(tun);
|
||||
tun = -1;
|
||||
}
|
||||
else {
|
||||
*eth_api = ETH_API_TAP;
|
||||
*fd_handle = (SOCKET)tun;
|
||||
return SCPE_OK;
|
||||
}
|
||||
}
|
||||
#else /* !(defined(HAVE_BSDTUNTAP) && defined(HAVE_TAP_NETWORK)) */
|
||||
strlcpy(errbuf, "No support for tap: devices", errbuf_size);
|
||||
|
||||
Reference in New Issue
Block a user