diff options
Diffstat (limited to 'src/vat')
-rw-r--r-- | src/vat/api_format.c | 4 |
1 files 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); } |