Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F143799478
D51871.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
555 B
Referenced Files
None
Subscribers
None
D51871.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D51871: netlink: Fix IFF_UP flag handling in RTM_NEWLINK's modify_link handler
Attached
Detach File
Event Timeline
Log In to Comment