Skip to content

Commit

Permalink
Also non-ip-only tap devices want setup
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bictorv committed Jan 16, 2023
1 parent 602e733 commit 510aedc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/osdnet.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 510aedc

Please sign in to comment.