Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177602065
D18924.1794823125.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
765 B
Referenced Files
None
Subscribers
None
D18924.1794823125.diff
View Options
Index: head/sys/net/if_bridge.c
===================================================================
--- head/sys/net/if_bridge.c
+++ head/sys/net/if_bridge.c
@@ -925,7 +925,7 @@
{
struct ifnet *ifp = bif->bif_ifp;
struct ifreq ifr;
- int error;
+ int error, mask, stuck;
BRIDGE_UNLOCK_ASSERT(sc);
@@ -938,10 +938,12 @@
if_printf(sc->sc_ifp,
"error setting capabilities on %s: %d\n",
ifp->if_xname, error);
- if ((ifp->if_capenable & ~set) != 0)
+ mask = BRIDGE_IFCAPS_MASK | BRIDGE_IFCAPS_STRIP;
+ stuck = ifp->if_capenable & mask & ~set;
+ if (stuck != 0)
if_printf(sc->sc_ifp,
"can't disable some capabilities on %s: 0x%x\n",
- ifp->if_xname, ifp->if_capenable & ~set);
+ ifp->if_xname, stuck);
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 16, 9:58 AM (11 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41772214
Default Alt Text
D18924.1794823125.diff (765 B)
Attached To
Mode
D18924: bridge: Fix spurious warnings about capabilities
Attached
Detach File
Event Timeline