aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/ip/ip6_forward.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet/ip/ip6_forward.c')
-rw-r--r--src/vnet/ip/ip6_forward.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/vnet/ip/ip6_forward.c b/src/vnet/ip/ip6_forward.c
index 8daf2614c15..d9c015f6fb4 100644
--- a/src/vnet/ip/ip6_forward.c
+++ b/src/vnet/ip/ip6_forward.c
@@ -310,7 +310,10 @@ ip6_add_del_interface_address (vlib_main_t * vm,
error = vnet_sw_interface_supports_addressing (vnm, sw_if_index);
if (error)
- return error;
+ {
+ vnm->api_errno = VNET_API_ERROR_UNSUPPORTED;
+ return error;
+ }
if (ip6_address_is_link_local_unicast (address))
{