Page MenuHomeFreeBSD

D11710.id31406.diff
No OneTemporary

D11710.id31406.diff

Index: head/sys/dev/hyperv/netvsc/if_hn.c
===================================================================
--- head/sys/dev/hyperv/netvsc/if_hn.c
+++ head/sys/dev/hyperv/netvsc/if_hn.c
@@ -1541,6 +1541,12 @@
sc->hn_ifaddr_evthand = EVENTHANDLER_REGISTER(ifaddr_event,
hn_ifaddr_event, sc, EVENTHANDLER_PRI_ANY);
+ /*
+ * NOTE:
+ * Subscribe ether_ifattach event, instead of ifnet_arrival event,
+ * since interface's LLADDR is needed; interface LLADDR is not
+ * available when ifnet_arrival event is triggered.
+ */
sc->hn_ifnet_atthand = EVENTHANDLER_REGISTER(ether_ifattach_event,
hn_ifnet_attevent, sc, EVENTHANDLER_PRI_ANY);
sc->hn_ifnet_dethand = EVENTHANDLER_REGISTER(ifnet_departure_event,

File Metadata

Mime Type
text/plain
Expires
Sun, Dec 22, 4:58 AM (18 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15550737
Default Alt Text
D11710.id31406.diff (726 B)

Event Timeline