summaryrefslogtreecommitdiffhomepage
path: root/src/odhcpd.c
diff options
context:
space:
mode:
authorHans Dedecker <dedeckeh@gmail.com>2019-02-07 13:18:40 +0100
committerHans Dedecker <dedeckeh@gmail.com>2019-02-07 17:39:46 +0100
commita54cee0d033ada75724b18a9350103a02e0ba956 (patch)
tree6d27339b2653e3cbb7e312cf05b3410a1efb5400 /src/odhcpd.c
parent9f25dd8af76dc30e54ddcbb4a284058e598951d5 (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.c14
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;