nat: api autoendian fix 75/34175/3
authorFilip Varga <fivarga@cisco.com>
Thu, 21 Oct 2021 11:00:27 +0000 (13:00 +0200)
committerOle Tr�an <otroan@employees.org>
Wed, 10 Nov 2021 10:48:19 +0000 (10:48 +0000)
commit9c25eb1f4876a399919782c97e116732ea2ee628
tree82ec5f326d2ebb326983abe6b4d2595729af46d1
parent603231f447f197e7bc45bdb75bf5d77420e682b9
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>
src/plugins/nat/nat44-ed/nat44_ed_api.c
src/plugins/nat/nat44-ei/nat44_ei.c
src/plugins/nat/nat44-ei/nat44_ei.h
src/plugins/nat/nat44-ei/nat44_ei_api.c
src/plugins/nat/nat44-ei/nat44_ei_cli.c
test/test_nat44_ed.py
test/test_nat44_ei.py