Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F131555502
D42972.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
463 B
Referenced Files
None
Subscribers
None
D42972.diff
View Options
diff --git a/sys/netlink/route/iface.c b/sys/netlink/route/iface.c
--- a/sys/netlink/route/iface.c
+++ b/sys/netlink/route/iface.c
@@ -322,11 +322,13 @@
*/
if (if_getaddrlen(ifp) != 0) {
struct ifaddr *ifa;
+ struct ifa_iter it;
NET_EPOCH_ENTER(et);
- ifa = CK_STAILQ_FIRST(&ifp->if_addrhead);
+ ifa = ifa_iter_start(ifp, &it);
if (ifa != NULL)
dump_sa(nw, IFLA_ADDRESS, ifa->ifa_addr);
+ ifa_iter_finish(&it);
NET_EPOCH_EXIT(et);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Oct 10, 5:39 AM (22 h, 11 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
23520418
Default Alt Text
D42972.diff (463 B)
Attached To
Mode
D42972: netlink: Don't directly access ifnet members
Attached
Detach File
Event Timeline
Log In to Comment