netlink: rework handling of netlink messages
[oweals/odhcpd.git] / src / odhcpd.c
index 46878f739132ba179131c602834a2b7f08f1f3e8..fafa3f68642781e82fcfeb459c443fe14ad81a90 100644 (file)
@@ -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;