From d6d0edbf055ecabdec289727cef08becd9aca9b8 Mon Sep 17 00:00:00 2001 From: Neale Ranns Date: Tue, 12 Nov 2019 17:16:47 +0000 Subject: ip: IP address and prefix types (moved from LISP) Type: refactor Change-Id: I2c6b59013bfd21136a2955442c779685f951932b Signed-off-by: Neale Ranns (cherry picked from commit ea93e48cf6e918937422638cb574964b88a146b6) --- src/vat/api_format.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/vat') diff --git a/src/vat/api_format.c b/src/vat/api_format.c index afbfde0fdfb..652fe0310c2 100644 --- a/src/vat/api_format.c +++ b/src/vat/api_format.c @@ -16597,13 +16597,13 @@ api_one_use_petr (vat_main_t * vam) if (unformat (input, "%U", unformat_ip4_address, &ip_addr_v4 (&ip))) { is_add = 1; - ip_addr_version (&ip) = IP4; + ip_addr_version (&ip) = AF_IP4; } else if (unformat (input, "%U", unformat_ip6_address, &ip_addr_v6 (&ip))) { is_add = 1; - ip_addr_version (&ip) = IP6; + ip_addr_version (&ip) = AF_IP6; } else { @@ -16617,7 +16617,7 @@ api_one_use_petr (vat_main_t * vam) mp->is_add = is_add; if (is_add) { - mp->is_ip4 = ip_addr_version (&ip) == IP4 ? 1 : 0; + mp->is_ip4 = ip_addr_version (&ip) == AF_IP4 ? 1 : 0; if (mp->is_ip4) clib_memcpy (mp->address, &ip, 4); else -- cgit 1.2.3-korg