Page MenuHomeFreeBSD

D51871.diff
No OneTemporary

D51871.diff

diff --git a/sys/netlink/route/iface_drivers.c b/sys/netlink/route/iface_drivers.c
--- a/sys/netlink/route/iface_drivers.c
+++ b/sys/netlink/route/iface_drivers.c
@@ -82,9 +82,12 @@
}
}
- if ((lattrs->ifi_change & IFF_UP) && (lattrs->ifi_flags & IFF_UP) == 0) {
- /* Request to down the interface */
- if_down(ifp);
+ if ((lattrs->ifi_change & IFF_UP) != 0 || lattrs->ifi_change == 0) {
+ /* Request to up or down the interface */
+ if (lattrs->ifi_flags & IFF_UP)
+ if_up(ifp);
+ else
+ if_down(ifp);
}
if (lattrs->ifla_mtu > 0) {

File Metadata

Mime Type
text/plain
Expires
Sun, Feb 1, 2:17 PM (21 m, 45 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28134764
Default Alt Text
D51871.diff (555 B)

Event Timeline