diff options
author | 2021-10-21 13:00:27 +0200 | |
---|---|---|
committer | 2021-11-10 10:48:19 +0000 | |
commit | 9c25eb1f4876a399919782c97e116732ea2ee628 (patch) | |
tree | 82ec5f326d2ebb326983abe6b4d2595729af46d1 /src/plugins/nat/nat44-ei/nat44_ei.h | |
parent | 603231f447f197e7bc45bdb75bf5d77420e682b9 (diff) |
nat: api autoendian fix
Fixed bad use of macros for autoendian API calls
and updated tests for the new API. Removed sw_if_index
check macro because of ntol conversion. Changed
REPLY_MACRO to REPLY_MACRO_END to fix ntohl conversions.
Type: fix
Change-Id: I878a07b3f80fe03179feab60f0abc662f408a2c8
Signed-off-by: Filip Varga <fivarga@cisco.com>
Diffstat (limited to 'src/plugins/nat/nat44-ei/nat44_ei.h')
-rw-r--r-- | src/plugins/nat/nat44-ei/nat44_ei.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/plugins/nat/nat44-ei/nat44_ei.h b/src/plugins/nat/nat44-ei/nat44_ei.h index 0134c7882dd..5f42b834094 100644 --- a/src/plugins/nat/nat44-ei/nat44_ei.h +++ b/src/plugins/nat/nat44-ei/nat44_ei.h @@ -484,9 +484,10 @@ extern nat44_ei_main_t nat44_ei_main; int nat44_ei_plugin_enable (nat44_ei_config_t c); int nat44_ei_plugin_disable (); -int nat44_ei_add_del_interface (u32 sw_if_index, u8 is_inside, int is_del); -int nat44_ei_add_del_output_interface (u32 sw_if_index, int is_del); - +int nat44_ei_add_interface (u32 sw_if_index, u8 is_inside); +int nat44_ei_del_interface (u32 sw_if_index, u8 is_inside); +int nat44_ei_add_output_interface (u32 sw_if_index); +int nat44_ei_del_output_interface (u32 sw_if_index); int nat44_ei_add_address (ip4_address_t *addr, u32 vrf_id); int nat44_ei_del_address (ip4_address_t addr, u8 delete_sm); int nat44_ei_add_interface_address (u32 sw_if_index); |