diff options
author | simokawa <simokawa@FreeBSD.org> | 2002-10-25 17:31:03 +0000 |
---|---|---|
committer | simokawa <simokawa@FreeBSD.org> | 2002-10-25 17:31:03 +0000 |
commit | 22f46b3ac74623b7d82314869dde14ccccb0b6da (patch) | |
tree | 1a4f5e3b7b3600d721397379425e1c1f54a7ed5d /sys | |
parent | a6f6127838973ab13d349a94f2bb3fd5130c3bb3 (diff) | |
download | FreeBSD-src-22f46b3ac74623b7d82314869dde14ccccb0b6da.zip FreeBSD-src-22f46b3ac74623b7d82314869dde14ccccb0b6da.tar.gz |
Don't check IFF_RUNNING in previous change.
The flag is sometimes unset if the interface has IPv6 link-local
address only.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/if_tun.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_tun.c b/sys/net/if_tun.c index d476590..400cf05 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); |