mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-11-07 04:36:52 -10:00
ifconfig: fix interface address ordering with Netlink.
This commit is contained in:
1 parent
1186ef86c3
commit
12cfa3c1bd
1 file changed
+1
-2
@@ -124,7 +124,6 @@ nl_init_socket(struct snl_state *ss)
|
||||
|
||||
struct ifa {
|
||||
struct ifa *next;
|
||||
uint32_t count;
|
||||
uint32_t idx;
|
||||
struct snl_parsed_addr addr;
|
||||
};
|
||||
@@ -214,7 +213,7 @@ prepare_ifaddrs(struct snl_state *ss, struct ifmap *ifmap)
|
||||
continue;
|
||||
struct iface *iface = ifmap->ifaces[ifindex];
|
||||
ifa->next = iface->ifa;
|
||||
ifa->count = ++count;
|
||||
ifa->idx = ++count;
|
||||
iface->ifa = ifa;
|
||||
iface->ifa_count++;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user