diff options
author | Filip Varga <fivarga@cisco.com> | 2021-07-26 12:48:26 +0200 |
---|---|---|
committer | Ole Tr�an <otroan@employees.org> | 2021-08-05 08:26:44 +0000 |
commit | 2621acc510a270ae6ae8d2e5f8107ecb0c883167 (patch) | |
tree | b639007218763fca0045b2cfe28b7c9ec1931b86 /src/plugins/nat/nat44-ed/nat44_ed.h | |
parent | 992d996ff5672ae647b21e27901d258aace79058 (diff) |
nat: nat44-ed disable protection for api/cli
Return unsupported error if user calls one
of the configuration functions that can
run only after nat44-ed plugin is
enabled via appropriate api/cli
call.
Type: fix
Change-Id: I0d4ab0684ba5ae23fc2ecc668554a34537c2904a
Signed-off-by: Filip Varga <fivarga@cisco.com>
Diffstat (limited to 'src/plugins/nat/nat44-ed/nat44_ed.h')
-rw-r--r-- | src/plugins/nat/nat44-ed/nat44_ed.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/plugins/nat/nat44-ed/nat44_ed.h b/src/plugins/nat/nat44-ed/nat44_ed.h index b74b46f81b7..ef4b546a488 100644 --- a/src/plugins/nat/nat44-ed/nat44_ed.h +++ b/src/plugins/nat/nat44-ed/nat44_ed.h @@ -960,8 +960,8 @@ int snat_add_interface_address (snat_main_t * sm, u32 sw_if_index, int is_del, * * @return 0 on success, non-zero value otherwise */ -int nat44_del_ed_session (snat_main_t * sm, ip4_address_t * addr, u16 port, - ip4_address_t * eh_addr, u16 eh_port, u8 proto, +int nat44_ed_del_session (snat_main_t *sm, ip4_address_t *addr, u16 port, + ip4_address_t *eh_addr, u16 eh_port, u8 proto, u32 vrf_id, int is_in); /** @@ -1049,10 +1049,6 @@ int snat_static_mapping_match ( void snat_add_del_addr_to_fib (ip4_address_t * addr, u8 p_len, u32 sw_if_index, int is_add); -int nat_set_outside_address_and_port (snat_address_t *addresses, - u32 thread_index, ip4_address_t addr, - u16 port, nat_protocol_t protocol); - /* * Why is this here? Because we don't need to touch this layer to * simply reply to an icmp. We need to change id to a unique |