udevmand: improve neighbour enumeration

Signed-off-by: John Crispin <[email protected]>
This commit is contained in:
John Crispin
2021-02-03 11:58:39 +01:00
parent 8b3fada390
commit 7f0726ba03
4 changed files with 45 additions and 34 deletions
+3
View File
@@ -56,6 +56,8 @@ mac_dump(struct mac *mac, int interface)
char buf[18];
void *c, *d;
neigh_enum();
clock_gettime(CLOCK_MONOTONIC, &ts);
last_seen = ts.tv_sec - mac->ts.tv_sec;
@@ -110,6 +112,7 @@ mac_dump(struct mac *mac, int interface)
}
blobmsg_close_array(&b, c);
neigh_flush();
}
int