Page MenuHomeFreeBSD

D50477.diff
No OneTemporary

D50477.diff

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

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)

Event Timeline