netifd: allow negative neighlocktime values
authorAlin Năstac <alin.nastac@gmail.com>
Thu, 17 Aug 2017 12:12:05 +0000 (14:12 +0200)
committerHans Dedecker <dedeckeh@gmail.com>
Thu, 17 Aug 2017 16:35:51 +0000 (18:35 +0200)
commite627542ee5763b6810bf3f7e64e151a0326922aa
tree012d3a99bfc99041c2301878f69d85901d6754ed
parente41382c92e9e83ad754a060e63efa43c753095f1
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>
device.h
system-linux.c