diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2015-11-20 05:38:11 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2015-11-20 05:38:11 +0000 |
commit | 9a32f0e0d5666574afc4d1926ada8f553d2091ef (patch) | |
tree | 3bc8666e12c216ae30cc2dd18959f64c437b54c9 /sys | |
parent | 1952882670df966f98f9ea5b76f401783db8d7e7 (diff) |
dont needlessly clear IFF_OACTIVE.
only a driver sets or clears OACTIVE. clearing it without setting it is
a waste of time.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/if_tun.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/net/if_tun.c b/sys/net/if_tun.c index 082ad3f8486..ee6aecda292 100644 --- a/sys/net/if_tun.c +++ b/sys/net/if_tun.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_tun.c,v 1.161 2015/11/20 05:15:33 dlg Exp $ */ +/* $OpenBSD: if_tun.c,v 1.162 2015/11/20 05:38:10 dlg Exp $ */ /* $NetBSD: if_tun.c,v 1.24 1996/05/07 02:40:48 thorpej Exp $ */ /* @@ -435,7 +435,6 @@ tun_init(struct tun_softc *tp) TUNDEBUG(("%s: tun_init\n", ifp->if_xname)); ifp->if_flags |= IFF_UP | IFF_RUNNING; - ifp->if_flags &= ~IFF_OACTIVE; /* we are never active */ tp->tun_flags &= ~(TUN_IASET|TUN_DSTADDR|TUN_BRDADDR); TAILQ_FOREACH(ifa, &ifp->if_addrlist, ifa_list) { |