X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=blobdiff_plain;f=interface.c;h=20956be26bd0da9d61471dc0befa8997c3695f81;hp=c437ef35d7d2da5909536a68d4add3c82e8f6c98;hb=07a47add60b567f65dd2051fe45ac49e1ae97524;hpb=84b04742fed90f8647c0c78396bd4b690cab5a33;ds=sidebyside diff --git a/interface.c b/interface.c index c437ef3..20956be 100644 --- a/interface.c +++ b/interface.c @@ -216,7 +216,7 @@ interface_alloc(const char *name, struct uci_section *s, struct blob_attr *attr) iface->main_dev.cb = interface_cb; iface->l3_iface = &iface->main_dev; strncpy(iface->name, name, sizeof(iface->name) - 1); - list_add(&iface->list, &interfaces); + list_add_tail(&iface->list, &interfaces); INIT_LIST_HEAD(&iface->errors); INIT_LIST_HEAD(&iface->address); INIT_LIST_HEAD(&iface->routes);