proto: move the dns search option handling to the core
[project/netifd.git] / interface-ip.h
index 78f0644..f6413ee 100644 (file)
@@ -27,8 +27,6 @@ struct device_addr {
        enum device_addr_flags flags;
        bool enabled;
 
-       struct device *device;
-
        /* must be last */
        unsigned int mask;
        union if_addr addr;
@@ -42,7 +40,6 @@ struct device_route {
        bool keep;
 
        union if_addr nexthop;
-       struct device *device;
        int metric;
        int mtu;
 
@@ -52,13 +49,13 @@ struct device_route {
 };
 
 struct dns_server {
-       struct list_head list;
+       struct vlist_simple_node node;
        int af;
        union if_addr addr;
 };
 
 struct dns_search_domain {
-       struct list_head list;
+       struct vlist_simple_node node;
        char name[];
 };