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
This commit is contained in:
Brian Somers 2001-04-02 21:49:18 +00:00
parent 9f5afc134f
commit 9c36ab644e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=75095

View File

@ -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;