X-Git-Url: https://gerrit.fd.io/r/gitweb?p=vpp.git;a=blobdiff_plain;f=src%2Fvat%2Fapi_format.c;h=46974d2d299bb0a080dc1a4c819f2ce552e9935d;hp=cef60e05725968c698f55293f955062f5589cbf9;hb=1ba5bc8d8;hpb=a5efca30f569ff93cfb85ed1bc7742cee824426d diff --git a/src/vat/api_format.c b/src/vat/api_format.c index cef60e05725..46974d2d299 100644 --- a/src/vat/api_format.c +++ b/src/vat/api_format.c @@ -15028,8 +15028,8 @@ api_ipsec_tunnel_if_add_del (vat_main_t * vam) u32 crypto_alg = 0, integ_alg = 0; u8 *lck = NULL, *rck = NULL; u8 *lik = NULL, *rik = NULL; - ip4_address_t local_ip = { {0} }; - ip4_address_t remote_ip = { {0} }; + vl_api_address_t local_ip = { 0 }; + vl_api_address_t remote_ip = { 0 }; u8 is_add = 1; u8 esn = 0; u8 anti_replay = 0; @@ -15049,9 +15049,11 @@ api_ipsec_tunnel_if_add_del (vat_main_t * vam) ; else if (unformat (i, "remote_spi %d", &remote_spi)) ; - else if (unformat (i, "local_ip %U", unformat_ip4_address, &local_ip)) + else + if (unformat (i, "local_ip %U", unformat_vl_api_address, &local_ip)) ; - else if (unformat (i, "remote_ip %U", unformat_ip4_address, &remote_ip)) + else + if (unformat (i, "remote_ip %U", unformat_vl_api_address, &remote_ip)) ; else if (unformat (i, "local_crypto_key %U", unformat_hex_string, &lck)) ; @@ -15099,8 +15101,8 @@ api_ipsec_tunnel_if_add_del (vat_main_t * vam) mp->esn = esn; mp->anti_replay = anti_replay; - clib_memcpy (mp->local_ip, &local_ip, sizeof (ip4_address_t)); - clib_memcpy (mp->remote_ip, &remote_ip, sizeof (ip4_address_t)); + clib_memcpy (&mp->local_ip, &local_ip, sizeof (local_ip)); + clib_memcpy (&mp->remote_ip, &remote_ip, sizeof (remote_ip)); mp->local_spi = htonl (local_spi); mp->remote_spi = htonl (remote_spi);