summaryrefslogtreecommitdiffhomepage
path: root/device.h
diff options
context:
space:
mode:
authorAlin Năstac <alin.nastac@gmail.com>2016-05-24 17:02:20 +0200
committerJo-Philipp Wich <jo@mein.io>2016-06-01 15:47:36 +0200
commitfef10041f3a495d79f03f99bdf416a68a0ee91aa (patch)
treea0bf145eaad59089d12bea4a541c7cd9439bdad6 /device.h
parenta0e96d0bdad7e39590ffc8dcb46935f35ee55284 (diff)
netifd: Add option to configure gc_stale_time for each device
The UCI parameter neighgcstaletime allows to control how much time will STALE entries be kept in the neighbour table for both IPv4 and IPv6. Signed-off-by: Alin Nastac <alin.nastac@gmail.com>
Diffstat (limited to 'device.h')
-rw-r--r--device.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/device.h b/device.h
index 4a88c05..77a2fef 100644
--- a/device.h
+++ b/device.h
@@ -47,6 +47,7 @@ enum {
DEV_ATTR_MULTICAST,
DEV_ATTR_LEARNING,
DEV_ATTR_UNICAST_FLOOD,
+ DEV_ATTR_NEIGHGCSTALETIME,
__DEV_ATTR_MAX,
};
@@ -92,6 +93,7 @@ enum {
DEV_OPT_MULTICAST = (1 << 16),
DEV_OPT_LEARNING = (1 << 17),
DEV_OPT_UNICAST_FLOOD = (1 << 18),
+ DEV_OPT_NEIGHGCSTALETIME = (1 << 19),
};
/* events broadcasted to all users of a device */
@@ -147,6 +149,8 @@ struct device_settings {
unsigned int mldversion;
unsigned int neigh4reachabletime;
unsigned int neigh6reachabletime;
+ unsigned int neigh4gcstaletime;
+ unsigned int neigh6gcstaletime;
bool rps;
bool xps;
unsigned int dadtransmits;