1
0
mirror of https://github.com/simh/simh.git synced 2026-01-30 13:27:50 +00:00

ETHER: Really fix the Linux and macOS tap functionality

Really fix #1230
This commit is contained in:
Mark Pizzolato
2025-10-19 16:16:31 -10:00
parent dc82d6d017
commit a9e4370b38

View File

@@ -2922,6 +2922,7 @@ if (0 == strncmp("tap:", savname, 4)) {
}
else {
*eth_api = ETH_API_TAP;
*handle = (void *)1; /* Flag used to indicated open */
*fd_handle = (SOCKET)tun;
strcpy(savname, ifr.ifr_name);
return SCPE_OK;
@@ -2983,6 +2984,7 @@ if (0 == strncmp("tap:", savname, 4)) {
}
else {
*eth_api = ETH_API_TAP;
*handle = (void *)1; /* Flag used to indicated open */
*fd_handle = (SOCKET)tun;
return SCPE_OK;
}