Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F157578843
D11777.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
653 B
Referenced Files
None
Subscribers
None
D11777.diff
View Options
Index: head/sbin/ifconfig/af_link.c
===================================================================
--- head/sbin/ifconfig/af_link.c
+++ head/sbin/ifconfig/af_link.c
@@ -108,7 +108,15 @@
if (rc != 0) {
return;
}
- if (memcmp(ifr.ifr_addr.sa_data, laggaddr, sdl->sdl_alen) == 0) {
+
+ /*
+ * If this is definitely a lagg device or the hwaddr
+ * matches the link addr, don't bother.
+ */
+ if (memcmp(ifr.ifr_addr.sa_data, laggaddr,
+ sdl->sdl_alen) == 0 ||
+ memcmp(ifr.ifr_addr.sa_data, LLADDR(sdl),
+ sdl->sdl_alen) == 0) {
return;
}
ether_format = ether_ntoa((const struct ether_addr *)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, May 24, 12:55 AM (16 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33460434
Default Alt Text
D11777.diff (653 B)
Attached To
Mode
D11777: Selectively print "hwaddr" from ifconfig(8).
Attached
Detach File
Event Timeline
Log In to Comment