From a54cee0d033ada75724b18a9350103a02e0ba956 Mon Sep 17 00:00:00 2001 From: Hans Dedecker Date: Thu, 7 Feb 2019 13:18:40 +0100 Subject: netlink: rework handling of netlink messages Multiple logical OpenWrt interfaces can be stacked on top of the same Linux device. As such netlink events for addresses/routes/ifindex changes need to be propagated to the different logical OpenWrt interfaces which use the Linux device as reported in the netlink message. Signed-off-by: Hans Dedecker --- src/odhcpd.c | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'src/odhcpd.c') diff --git a/src/odhcpd.c b/src/odhcpd.c index 46878f7..fafa3f6 100644 --- a/src/odhcpd.c +++ b/src/odhcpd.c @@ -300,20 +300,6 @@ struct interface* odhcpd_get_interface_by_index(int ifindex) return NULL; } - -struct interface* odhcpd_get_interface_by_name(const char *name) -{ - struct interface *iface; - - avl_for_each_element(&interfaces, iface, avl) { - if (!strcmp(iface->ifname, name)) - return iface; - } - - return NULL; -} - - struct interface* odhcpd_get_master_interface(void) { struct interface *iface; -- cgit v1.2.3