Page MenuHomeFreeBSD

D11777.diff
No OneTemporary

D11777.diff

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

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)

Event Timeline