diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2015-11-20 05:29:54 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2015-11-20 05:29:54 +0000 |
commit | 1316ee19fdcaef204d45fda84f0076627224d524 (patch) | |
tree | ecedc8bf461bc430bc200b2273483babd84875db /sys/net | |
parent | 14b24da0e621f5730f36dd9d7f1e52e066b49c7d (diff) |
dont check for OACTIVE
only a driver sets or clears this flag. gif never sets it, so it
wont be set when it checks it.
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/if_gif.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_gif.c b/sys/net/if_gif.c index 92398947e40..55e25f7ce59 100644 --- a/sys/net/if_gif.c +++ b/sys/net/if_gif.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_gif.c,v 1.81 2015/10/25 11:58:11 mpi Exp $ */ +/* $OpenBSD: if_gif.c,v 1.82 2015/11/20 05:29:53 dlg Exp $ */ /* $KAME: if_gif.c,v 1.43 2001/02/20 08:51:07 itojun Exp $ */ /* @@ -176,7 +176,7 @@ gif_start(struct ifnet *ifp) break; /* is interface up and usable? */ - if ((ifp->if_flags & (IFF_OACTIVE | IFF_UP)) != IFF_UP || + if (!(ifp->if_flags & IFF_UP) || sc->gif_psrc == NULL || sc->gif_pdst == NULL || sc->gif_psrc->sa_family != sc->gif_pdst->sa_family) { m_freem(m); |