diff options
author | yedg <yedg@wangsu.com> | 2020-05-14 10:51:53 +0800 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2020-05-14 07:39:25 +0000 |
commit | dbd366b239c0506b0d9984e7481967e038f10a23 (patch) | |
tree | e419a199da828fde705cd67ee742b2d0e05ebe32 /src/vnet/ip/ip_interface.h | |
parent | b163bbb7482a0a4b4685016eda4d2b2d3a9fcbb4 (diff) |
ip: fix interface ip address del sw_if_index check
Type: fix
Signed-off-by: Ye donggang <yedg@wangsu.com>
Change-Id: Ia9f72ff2be455ecd4ff3d16e884c5a50f9df69fe
Diffstat (limited to 'src/vnet/ip/ip_interface.h')
-rw-r--r-- | src/vnet/ip/ip_interface.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/vnet/ip/ip_interface.h b/src/vnet/ip/ip_interface.h index f95b8deb07b..b48eebdbc90 100644 --- a/src/vnet/ip/ip_interface.h +++ b/src/vnet/ip/ip_interface.h @@ -28,8 +28,10 @@ clib_error_t *ip_interface_address_add (ip_lookup_main_t * lm, void *address, u32 address_length, u32 * result_index); -void ip_interface_address_del (ip_lookup_main_t * lm, - u32 addr_index, void *address); +clib_error_t *ip_interface_address_del (ip_lookup_main_t * lm, + vnet_main_t * vnm, + u32 addr_index, void *address, + u32 address_length, u32 sw_if_index); void *ip_interface_get_first_ip (u32 sw_if_index, u8 is_ip4); void ip_interface_address_mark (void); void ip_interface_address_sweep (void); |