mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-12 09:58:36 +00:00
Don't check IFF_RUNNING in previous change.
The flag is sometimes unset if the interface has IPv6 link-local address only.
This commit is contained in:
parent
a89c1d30b2
commit
6fe6a00661
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=105944
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user