VPP-358: Add IPv6 ND Event Notification and Termination 94/2594/3
authorJohn Lo <loj@cisco.com>
Fri, 2 Sep 2016 04:13:41 +0000 (00:13 -0400)
committerDave Barach <openvpp@barachs.net>
Sat, 3 Sep 2016 20:35:10 +0000 (20:35 +0000)
Additional fix to vpp_api_test to show which kind of arp/ip6-nd
event is received, whether it is address resolution or mac/ip binding.

Change-Id: Ic65b895cd1bfbe2f34d1b68891a1a580852fbcdb
Signed-off-by: John Lo <loj@cisco.com>
vpp-api-test/vat/api_format.c

index b9cfd75..52d0378 100644 (file)
@@ -1151,7 +1151,8 @@ static void
 vl_api_ip4_arp_event_t_handler (vl_api_ip4_arp_event_t * mp)
 {
   vat_main_t *vam = &vat_main;
-  errmsg ("arp event: address %U new mac %U sw_if_index %d\n",
+  errmsg ("arp %s event: address %U new mac %U sw_if_index %d\n",
+         mp->mac_ip ? "mac/ip binding" : "address resolution",
          format_ip4_address, &mp->address,
          format_ethernet_address, mp->new_mac, mp->sw_if_index);
 }
@@ -1166,7 +1167,8 @@ static void
 vl_api_ip6_nd_event_t_handler (vl_api_ip6_nd_event_t * mp)
 {
   vat_main_t *vam = &vat_main;
-  errmsg ("ip6 nd event: address %U new mac %U sw_if_index %d\n",
+  errmsg ("ip6 nd %s event: address %U new mac %U sw_if_index %d\n",
+         mp->mac_ip ? "mac/ip binding" : "address resolution",
          format_ip6_address, mp->address,
          format_ethernet_address, mp->new_mac, mp->sw_if_index);
 }