summaryrefslogtreecommitdiffhomepage
path: root/device.h
diff options
context:
space:
mode:
authorAlin Năstac <alin.nastac@gmail.com>2017-01-17 16:16:04 +0100
committerFelix Fietkau <nbd@nbd.name>2017-02-11 21:53:21 +0100
commitf1076561f4cd4e391ca654d76498b0429413c61e (patch)
tree244b014b9927f4122e048bbe692c14e8b6a306a3 /device.h
parentcdc0e80300a465d507aba8e8d11be56366ebb6cd (diff)
netifd: Add option to configure locktime for each device
The UCI parameter neighlocktime allows to control the hardware address to IP mapping lock time in the IPv4 neighbour table. The IPv6 lock time was not set because it is not used at all in any kernel versions, hardware address override being controlled in this case by the override flag present in the NA packet. Signed-off-by: Alin Nastac <alin.nastac@gmail.com>
Diffstat (limited to 'device.h')
-rw-r--r--device.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/device.h b/device.h
index 87236d4..feb865f 100644
--- a/device.h
+++ b/device.h
@@ -51,6 +51,7 @@ enum {
DEV_ATTR_UNICAST_FLOOD,
DEV_ATTR_NEIGHGCSTALETIME,
DEV_ATTR_SENDREDIRECTS,
+ DEV_ATTR_NEIGHLOCKTIME,
__DEV_ATTR_MAX,
};
@@ -103,6 +104,7 @@ enum {
DEV_OPT_NEIGHGCSTALETIME = (1 << 19),
DEV_OPT_MULTICAST_FAST_LEAVE = (1 << 20),
DEV_OPT_SENDREDIRECTS = (1 << 21),
+ DEV_OPT_NEIGHLOCKTIME = (1 << 22),
};
/* events broadcasted to all users of a device */
@@ -160,6 +162,7 @@ struct device_settings {
unsigned int neigh6reachabletime;
unsigned int neigh4gcstaletime;
unsigned int neigh6gcstaletime;
+ unsigned int neigh4locktime;
bool rps;
bool xps;
unsigned int dadtransmits;