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: more expressive API errors
[vpp.git]
/
src
/
vnet
/
ipsec
/
ipsec_if.c
diff --git
a/src/vnet/ipsec/ipsec_if.c
b/src/vnet/ipsec/ipsec_if.c
index
41089b6
..
bf34604
100644
(file)
--- a/
src/vnet/ipsec/ipsec_if.c
+++ b/
src/vnet/ipsec/ipsec_if.c
@@
-343,7
+343,7
@@
ipsec_add_del_tunnel_if_internal (vnet_main_t * vnm,
&args->local_ip, &t->input_sa_index);
if (rv)
&args->local_ip, &t->input_sa_index);
if (rv)
- return VNET_API_ERROR_
UNIMPLEMENTED
;
+ return VNET_API_ERROR_
INVALID_SRC_ADDRESS
;
ipsec_mk_key (&crypto_key,
args->local_crypto_key, args->local_crypto_key_len);
ipsec_mk_key (&crypto_key,
args->local_crypto_key, args->local_crypto_key_len);
@@
-363,7
+363,7
@@
ipsec_add_del_tunnel_if_internal (vnet_main_t * vnm,
&args->remote_ip, &t->output_sa_index);
if (rv)
&args->remote_ip, &t->output_sa_index);
if (rv)
- return VNET_API_ERROR_
UNIMPLEMENTED
;
+ return VNET_API_ERROR_
INVALID_DST_ADDRESS
;
/* copy the key */
if (is_ip6)
/* copy the key */
if (is_ip6)