Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
ipsec: add ipv6 support for ipsec tunnel interface
[vpp.git]
/
src
/
vat
/
api_format.c
diff --git
a/src/vat/api_format.c
b/src/vat/api_format.c
index
cef60e0
..
46974d2
100644
(file)
--- 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;
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;
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, "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))
;
;
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;
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);
mp->local_spi = htonl (local_spi);
mp->remote_spi = htonl (remote_spi);