diff options
author | Hans Dedecker <dedeckeh@gmail.com> | 2019-02-07 13:18:40 +0100 |
---|---|---|
committer | Hans Dedecker <dedeckeh@gmail.com> | 2019-02-07 17:39:46 +0100 |
commit | a54cee0d033ada75724b18a9350103a02e0ba956 (patch) | |
tree | 6d27339b2653e3cbb7e312cf05b3410a1efb5400 /src/odhcpd.c | |
parent | 9f25dd8af76dc30e54ddcbb4a284058e598951d5 (diff) |
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 <dedeckeh@gmail.com>
Diffstat (limited to 'src/odhcpd.c')
-rw-r--r-- | src/odhcpd.c | 14 |
1 files changed, 0 insertions, 14 deletions
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; |