Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151575980
D50477.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D50477.diff
View Options
diff --git a/sys/net/if_bridge.c b/sys/net/if_bridge.c
--- a/sys/net/if_bridge.c
+++ b/sys/net/if_bridge.c
@@ -1329,25 +1329,6 @@
return (EINVAL);
}
- /*
- * If member_ifaddrs is disabled, do not allow an interface with
- * assigned IP addresses to be added to a bridge.
- */
- if (!V_member_ifaddrs) {
- struct ifaddr *ifa;
-
- CK_STAILQ_FOREACH(ifa, &ifs->if_addrhead, ifa_link) {
-#ifdef INET
- if (ifa->ifa_addr->sa_family == AF_INET)
- return (EINVAL);
-#endif
-#ifdef INET6
- if (ifa->ifa_addr->sa_family == AF_INET6)
- return (EINVAL);
-#endif
- }
- }
-
#ifdef INET6
/*
* Two valid inet6 addresses with link-local scope must not be
@@ -1386,6 +1367,26 @@
}
}
#endif
+
+ /*
+ * If member_ifaddrs is disabled, do not allow an interface with
+ * assigned IP addresses to be added to a bridge.
+ */
+ if (!V_member_ifaddrs) {
+ struct ifaddr *ifa;
+
+ CK_STAILQ_FOREACH(ifa, &ifs->if_addrhead, ifa_link) {
+#ifdef INET
+ if (ifa->ifa_addr->sa_family == AF_INET)
+ return (EINVAL);
+#endif
+#ifdef INET6
+ if (ifa->ifa_addr->sa_family == AF_INET6)
+ return (EINVAL);
+#endif
+ }
+ }
+
/* Allow the first Ethernet member to define the MTU */
if (CK_LIST_EMPTY(&sc->sc_iflist))
sc->sc_ifp->if_mtu = ifs->if_mtu;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Apr 10, 7:16 AM (9 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31208918
Default Alt Text
D50477.diff (1 KB)
Attached To
Mode
D50477: bridge: check allow_llz_overlap before member_ifaddrs
Attached
Detach File
Event Timeline
Log In to Comment