replace the kernel's implicit network routes if the metric is set
[project/netifd.git] / interface-ip.h
index cbfcb49..d206eca 100644 (file)
@@ -26,7 +26,10 @@ enum device_addr_flags {
        DEVADDR_EXTERNAL        = (1 << 2),
 
        /* route overrides the default interface metric */
-       DEVROUTE_METRIC         = (1 << 3)
+       DEVROUTE_METRIC         = (1 << 3),
+
+       /* route automatically added by kernel */
+       DEVADDR_KERNEL          = (1 << 4),
 };
 
 union if_addr {
@@ -40,6 +43,7 @@ struct device_addr {
 
        /* ipv4 only */
        uint32_t broadcast;
+       uint32_t point_to_point;
 
        /* must be last */
        enum device_addr_flags flags;