ip ntable: Add support for "mcast_reprobes" parameter
Kernel commit
8da86466b837 ("net: neighbour: Add mcast_resolicit to
configure the number of multicast resolicitations in PROBE state.")
added the "NDTPA_MCAST_REPROBES" netlink attribute that allows user
space to set / get the number of multicast probes that are sent by the
kernel in PROBE state after unicast probes did not solicit a response.
Add support for this parameter in iproute2.
Example usage and output:
$ ip ntable show dev dummy0 name arp_cache
inet arp_cache
dev dummy0
refcnt 1 reachable 43430 base_reachable 30000 retrans 1000
gc_stale 60000 delay_probe 5000 queue 101
app_probes 0 ucast_probes 3 mcast_probes 3 mcast_reprobes 0
anycast_delay 1000 proxy_delay 800 proxy_queue 64 locktime 1000
# ip ntable change name arp_cache dev dummy0 mcast_reprobes 5
$ ip ntable show dev dummy0 name arp_cache
inet arp_cache
dev dummy0
refcnt 1 reachable 43430 base_reachable 30000 retrans 1000
gc_stale 60000 delay_probe 5000 queue 101
app_probes 0 ucast_probes 3 mcast_probes 3 mcast_reprobes 5
anycast_delay 1000 proxy_delay 800 proxy_queue 64 locktime 1000
$ ip -j -p ntable show dev dummy0 name arp_cache
[ {
"family": "inet",
"name": "arp_cache",
"dev": "dummy0",
"refcnt": 1,
"reachable": 43430,
"base_reachable": 30000,
"retrans": 1000,
"gc_stale": 60000,
"delay_probe": 5000,
"queue": 101,
"app_probes": 0,
"ucast_probes": 3,
"mcast_probes": 3,
"mcast_reprobes": 5,
"anycast_delay": 1000,
"proxy_delay": 800,
"proxy_queue": 64,
"locktime": 1000
} ]
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David Ahern <dsahern@kernel.org>