From fd2417b2a42e34062e3d07875e5c4e11922513d5 Mon Sep 17 00:00:00 2001 From: Neale Ranns Date: Fri, 16 Jul 2021 14:00:16 +0000 Subject: ip-neighbor: ARP and ND stats per-interface. Type: feature stats of the like from: https://datatracker.ietf.org/doc/html/draft-ietf-rtgwg-arp-yang-model-03#section-4 Signed-off-by: Neale Ranns Change-Id: Icb1bf4f6f7e6ccc2f44b0008d4774b61cae96184 --- src/plugins/arping/arping.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/plugins/arping') diff --git a/src/plugins/arping/arping.c b/src/plugins/arping/arping.c index a446c259d44..11fb0704dd3 100644 --- a/src/plugins/arping/arping.c +++ b/src/plugins/arping/arping.c @@ -500,6 +500,7 @@ arping_neighbor_advertisement (vlib_main_t *vm, arping_args_t *args) vlib_cli_output (vm, "Sending %u GARP to %U", send_count, format_ip4_address, &args->address.ip.ip4); ip4_neighbor_advertise (vm, vnm, args->sw_if_index, + vlib_get_thread_index (), &args->address.ip.ip4); } else @@ -509,6 +510,7 @@ arping_neighbor_advertisement (vlib_main_t *vm, arping_args_t *args) send_count, format_ip6_address, &args->address.ip.ip6); ip6_neighbor_advertise (vm, vnm, args->sw_if_index, + vlib_get_thread_index (), &args->address.ip.ip6); } args->repeat--; @@ -587,7 +589,8 @@ arping_neighbor_probe_dst (vlib_main_t *vm, arping_args_t *args) if (args->silence == 0) vlib_cli_output (vm, "Sending %u ARP Request to %U", send_count, format_ip4_address, &args->address.ip.ip4); - ip4_neighbor_probe_dst (args->sw_if_index, &args->address.ip.ip4); + ip4_neighbor_probe_dst (args->sw_if_index, vlib_get_thread_index (), + &args->address.ip.ip4); } else { @@ -595,7 +598,8 @@ arping_neighbor_probe_dst (vlib_main_t *vm, arping_args_t *args) vlib_cli_output (vm, "Sending %u Neighbor Solicitation to %U", send_count, format_ip6_address, &args->address.ip.ip6); - ip6_neighbor_probe_dst (args->sw_if_index, &args->address.ip.ip6); + ip6_neighbor_probe_dst (args->sw_if_index, vlib_get_thread_index (), + &args->address.ip.ip6); } args->repeat--; if ((args->interval > 0.0) && (args->repeat > 0)) -- cgit 1.2.3-korg