mac addresses were never flushed

Signed-off-by: John Crispin <[email protected]>
This commit is contained in:
John Crispin
2023-03-15 15:21:44 +01:00
parent 3d2b67b180
commit 979aca4764
9 changed files with 129 additions and 6 deletions
+11
View File
@@ -38,6 +38,17 @@ iface_find(char *name)
return iface;
}
void
iface_done(void)
{
struct iface *i, *t;
avl_for_each_element_safe(&iface_tree, i, avl, t) {
avl_delete(&iface_tree, &i->avl);
free(i);
}
}
static void
iface_get(void)
{