interface: fix moving interface address routes to the table specified by ip[46]table
[project/netifd.git] / interface-ip.h
index 93d55ee..c0a3b92 100644 (file)
@@ -45,6 +45,9 @@ enum device_addr_flags {
 
        /* route is on-link */
        DEVROUTE_ONLINK         = (1 << 9),
+
+       /* route overrides the default route type */
+       DEVROUTE_TYPE           = (1 << 10),
 };
 
 union if_addr {
@@ -56,6 +59,7 @@ struct device_prefix_assignment {
        struct list_head head;
        int32_t assigned;
        uint8_t length;
+       struct in6_addr addr;
        bool enabled;
        char name[];
 };
@@ -81,6 +85,7 @@ struct device_addr {
        struct vlist_node node;
        bool enabled;
        bool failed;
+       unsigned int policy_table;
 
        /* ipv4 only */
        uint32_t broadcast;
@@ -107,6 +112,7 @@ struct device_route {
 
        union if_addr nexthop;
        int mtu;
+       unsigned int type;
        time_t valid_until;
 
        /* must be last */