netifd: add segment routing support
[project/netifd.git] / device.h
index ab5a162a964ce0d3be4cdcc98de18b2ddf86213c..dc410b425c9398a3f690a0d0f080c0c9f46a7675 100644 (file)
--- a/device.h
+++ b/device.h
@@ -53,6 +53,7 @@ enum {
        DEV_ATTR_SENDREDIRECTS,
        DEV_ATTR_NEIGHLOCKTIME,
        DEV_ATTR_ISOLATE,
+       DEV_ATTR_IP6SEGMENTROUTING,
        __DEV_ATTR_MAX,
 };
 
@@ -107,6 +108,7 @@ enum {
        DEV_OPT_SENDREDIRECTS           = (1 << 21),
        DEV_OPT_NEIGHLOCKTIME           = (1 << 22),
        DEV_OPT_ISOLATE                 = (1 << 23),
+       DEV_OPT_IP6SEGMENTROUTING       = (1 << 24),
 };
 
 /* events broadcasted to all users of a device */
@@ -173,6 +175,7 @@ struct device_settings {
        bool learning;
        bool unicast_flood;
        bool sendredirects;
+       bool ip6segmentrouting;
        bool isolate;
 };
 
@@ -320,4 +323,6 @@ device_set_disabled(struct device *dev, bool value)
        device_refresh_present(dev);
 }
 
+bool device_check_ip6segmentrouting(void);
+
 #endif