diff options
author | Hans Dedecker <dedeckeh@gmail.com> | 2015-02-02 16:11:24 +0100 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2015-02-09 09:26:25 +0100 |
commit | 2dae3867c8730e194c036a7827b0322726adf81a (patch) | |
tree | 0b2b06698ae49d1897137f7b2a6a8cd9ebb33ae4 /device.h | |
parent | 258b79f7a912abc84a3066c90266d8835597362e (diff) |
netifd: Add option to configure base_reachable_time_ms for each device
The UCI parameter neighreachabletime allows to control the hardware address
to IP mapping lifetime in the neighbour table for both IPv4 and IPv6
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Signed-off-by: Jean-Francois Remy <jeff@melix.org>
Diffstat (limited to 'device.h')
-rw-r--r-- | device.h | 22 |
1 files changed, 13 insertions, 9 deletions
@@ -37,6 +37,7 @@ enum { DEV_ATTR_ACCEPTLOCAL, DEV_ATTR_IGMPVERSION, DEV_ATTR_MLDVERSION, + DEV_ATTR_NEIGHREACHABLETIME, __DEV_ATTR_MAX, }; @@ -65,15 +66,16 @@ struct device_type { }; enum { - DEV_OPT_MTU = (1 << 0), - DEV_OPT_MACADDR = (1 << 1), - DEV_OPT_TXQUEUELEN = (1 << 2), - DEV_OPT_IPV6 = (1 << 3), - DEV_OPT_PROMISC = (1 << 4), - DEV_OPT_RPFILTER = (1 << 5), - DEV_OPT_ACCEPTLOCAL = (1 << 6), - DEV_OPT_IGMPVERSION = (1 << 7), - DEV_OPT_MLDVERSION = (1 << 8), + DEV_OPT_MTU = (1 << 0), + DEV_OPT_MACADDR = (1 << 1), + DEV_OPT_TXQUEUELEN = (1 << 2), + DEV_OPT_IPV6 = (1 << 3), + DEV_OPT_PROMISC = (1 << 4), + DEV_OPT_RPFILTER = (1 << 5), + DEV_OPT_ACCEPTLOCAL = (1 << 6), + DEV_OPT_IGMPVERSION = (1 << 7), + DEV_OPT_MLDVERSION = (1 << 8), + DEV_OPT_NEIGHREACHABLETIME = (1 << 9), }; /* events broadcasted to all users of a device */ @@ -125,6 +127,8 @@ struct device_settings { bool acceptlocal; unsigned int igmpversion; unsigned int mldversion; + unsigned int neigh4reachabletime; + unsigned int neigh6reachabletime; }; /* |