From 1316ee19fdcaef204d45fda84f0076627224d524 Mon Sep 17 00:00:00 2001 From: David Gwynne Date: Fri, 20 Nov 2015 05:29:54 +0000 Subject: 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. --- sys/net/if_gif.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/net') 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); -- cgit v1.2.3