diff options
author | brian <brian@FreeBSD.org> | 2001-04-02 21:49:18 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2001-04-02 21:49:18 +0000 |
commit | 146874eeb60194504260bddae9aade5f1222d6bb (patch) | |
tree | 852db78eeee45244995dc2ec3a62f1232e359384 /sys/net/if_tun.c | |
parent | 71cbcd965f8e9ecac7eedfb8f6244f16f65bd44e (diff) | |
download | FreeBSD-src-146874eeb60194504260bddae9aade5f1222d6bb.zip FreeBSD-src-146874eeb60194504260bddae9aade5f1222d6bb.tar.gz |
Return 0 and do nothing when we get a SIOCSIFFLAGS.
Without this, ifpromisc() always fails (after setting the IFF_PROMISC
bit in ifp->if_flags) and bpf never bothers to turn promiscuous mode off.
PR: 20188
Diffstat (limited to 'sys/net/if_tun.c')
-rw-r--r-- | sys/net/if_tun.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/net/if_tun.c b/sys/net/if_tun.c index 78fd0f1..e9b840e 100644 --- a/sys/net/if_tun.c +++ b/sys/net/if_tun.c @@ -328,6 +328,7 @@ tunifioctl(ifp, cmd, data) ifp->if_mtu = ifr->ifr_mtu; TUNDEBUG("%s%d: mtu set\n", ifp->if_name, ifp->if_unit); break; + case SIOCSIFFLAGS: case SIOCADDMULTI: case SIOCDELMULTI: break; |