From b34f99ced80a8eeb8c4eba5e2d023d70f210253b Mon Sep 17 00:00:00 2001 From: Neale Ranns Date: Wed, 3 Jul 2019 08:00:53 +0000 Subject: vat: Fix the incrementing IPv6 address Type: fix Change-Id: Ie085713f45672e112993638e01cdb325f451020a Signed-off-by: Neale Ranns --- src/vat/api_format.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vat/api_format.c b/src/vat/api_format.c index d9c13ad8644..e0d77a46b2b 100644 --- a/src/vat/api_format.c +++ b/src/vat/api_format.c @@ -737,9 +737,9 @@ increment_v6_address (vl_api_ip6_address_t * i) static void increment_address (vl_api_address_t * a) { - if (a->af == ADDRESS_IP4) + if (clib_net_to_host_u32 (a->af) == ADDRESS_IP4) increment_v4_address (&a->un.ip4); - else if (a->af == ADDRESS_IP6) + else if (clib_net_to_host_u32 (a->af) == ADDRESS_IP6) increment_v6_address (&a->un.ip6); } -- cgit 1.2.3-korg