1
0
mirror of https://github.com/PDP-10/klh10.git synced 2026-01-11 23:52:54 +00:00

Also non-ip-only tap devices want setup

tap-without-bridge devices are also useful if they (as in old times) are setup with the IP addresses given in the config. Without setup, this has to be done manually which is more awkward.
This commit is contained in:
Björn Victor 2023-01-16 09:21:27 +01:00
parent 602e7337c8
commit 510aedca29

View File

@ -1899,10 +1899,10 @@ osn_pfinit_tuntap(struct pfdata *pfdata, struct osnpf *osnpf, void *arg)
It should probably match the same network as the local address,
especially if planning to connect from other machines.
This is only needed for TUNNEL devices, not TAP devices.
This is only needed for TUNNEL devices, not tap+bridge devices.
*/
#if CENV_SYS_LINUX /* [BV: Linux tun device] */
if (pfdata->pf_ip4_only) {
#if CENV_SYS_LINUX /* [BV: Linux tun/tap device with tunaddr set] */
if (memcmp((char *)&ipremote, "\0\0\0\0", IP_ADRSIZ) != 0) {
char cmdbuff[128]; /* "Hacky" but simple method */
int res;