summaryrefslogtreecommitdiff
path: root/device.h
diff options
context:
space:
mode:
authorAlin Năstac <alin.nastac@gmail.com>2017-08-17 14:12:05 +0200
committerHans Dedecker <dedeckeh@gmail.com>2017-08-17 18:35:51 +0200
commite627542ee5763b6810bf3f7e64e151a0326922aa (patch)
tree012d3a99bfc99041c2301878f69d85901d6754ed /device.h
parente41382c92e9e83ad754a060e63efa43c753095f1 (diff)
downloadnetifd-e627542ee5763b6810bf3f7e64e151a0326922aa.tar.gz
netifd: allow negative neighlocktime values
When -1 is written in /proc/sys/net/ipv4/neigh/<iface>/locktime, kernel disables ARP trashing protection. A value of 0 does not completely disable this protection, a second ARP update being discarded if it is processed during the same jiffie as the first update. Signed-off-by: Alin Nastac <alin.nastac@gmail.com>
Diffstat (limited to 'device.h')
-rw-r--r--device.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/device.h b/device.h
index 74d20d6..7ad733e 100644
--- a/device.h
+++ b/device.h
@@ -162,7 +162,7 @@ struct device_settings {
unsigned int neigh6reachabletime;
unsigned int neigh4gcstaletime;
unsigned int neigh6gcstaletime;
- unsigned int neigh4locktime;
+ int neigh4locktime;
bool rps;
bool xps;
unsigned int dadtransmits;