Incorperate route table into avl key
[project/netifd.git] / interface-ip.h
index 91358b8..607999e 100644 (file)
@@ -36,6 +36,9 @@ enum device_addr_flags {
 
        /* address is off-link (no subnet-route) */
        DEVADDR_OFFLINK         = (1 << 6),
 
        /* address is off-link (no subnet-route) */
        DEVADDR_OFFLINK         = (1 << 6),
+
+       /* route resides in different table */
+       DEVROUTE_TABLE          = (1 << 7),
 };
 
 union if_addr {
 };
 
 union if_addr {
@@ -98,6 +101,7 @@ struct device_route {
        /* must be last */
        enum device_addr_flags flags;
        int metric; // there can be multiple routes to the same target
        /* must be last */
        enum device_addr_flags flags;
        int metric; // there can be multiple routes to the same target
+       unsigned int table;
        unsigned int mask;
        union if_addr addr;
 };
        unsigned int mask;
        union if_addr addr;
 };