Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F155020090
D41586.id126483.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
666 B
Referenced Files
None
Subscribers
None
D41586.id126483.diff
View Options
diff --git a/sbin/ifconfig/ifconfig_netlink.c b/sbin/ifconfig/ifconfig_netlink.c
--- a/sbin/ifconfig/ifconfig_netlink.c
+++ b/sbin/ifconfig/ifconfig_netlink.c
@@ -299,7 +299,13 @@
.sdl_alen = NLA_DATA_LEN(link->ifla_address),
};
return (match_ether(&sdl));
- }
+ } else if (args->afp->af_af == AF_LINK)
+ /*
+ * The rtnetlink(4) RTM_GETADDR does not list link level
+ * addresses, so latter cycle won't match anything. Short
+ * circuit on RTM_GETLINK has provided us an address.
+ */
+ return (link->ifla_address != NULL);
for (struct ifa *ifa = iface->ifa; ifa != NULL; ifa = ifa->next) {
if (args->afp->af_af == ifa->addr.ifa_family)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, May 1, 5:49 PM (18 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32548740
Default Alt Text
D41586.id126483.diff (666 B)
Attached To
Mode
D41586: ifconfig: fix 'ifconfig -l link'
Attached
Detach File
Event Timeline
Log In to Comment