From 6fe6a00661d419249a063786d11fdd455f9eb607 Mon Sep 17 00:00:00 2001 From: Hidetoshi Shimokawa Date: Fri, 25 Oct 2002 17:31:03 +0000 Subject: [PATCH] Don't check IFF_RUNNING in previous change. The flag is sometimes unset if the interface has IPv6 link-local address only. --- sys/net/if_tun.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/net/if_tun.c b/sys/net/if_tun.c index d476590069a..400cf05632b 100644 --- a/sys/net/if_tun.c +++ b/sys/net/if_tun.c @@ -459,7 +459,7 @@ tunoutput( return (EHOSTDOWN); } - if ((ifp->if_flags & (IFF_UP|IFF_RUNNING)) != (IFF_UP|IFF_RUNNING)) { + if ((ifp->if_flags & IFF_UP) != IFF_UP) { m_freem (m0); return (EHOSTDOWN); } @@ -712,7 +712,7 @@ tunwrite(dev_t dev, struct uio *uio, int flag) TUNDEBUG("%s%d: tunwrite\n", ifp->if_name, ifp->if_unit); - if ((ifp->if_flags & (IFF_UP|IFF_RUNNING)) != (IFF_UP|IFF_RUNNING)) + if ((ifp->if_flags & IFF_UP) != IFF_UP) /* ignore silently */ return (0);