diff options
author | Hongjun Ni <hongjun.ni@intel.com> | 2019-05-14 00:19:35 +0800 |
---|---|---|
committer | Hongjun Ni <hongjun.ni@intel.com> | 2019-05-14 00:19:35 +0800 |
commit | 28bb25aee9898b50468233e896aab018e68bf787 (patch) | |
tree | 5f4e3892912e7ccc934daa7b25d53d4b76e7a25a /src | |
parent | 7bf60a810b1bb768b0c4ced54275d8f1a9fc2a89 (diff) |
Remove "addr_only" field in NAT to adopt VPP API change
Change-Id: Iaa02e72eecb3b557227ca0136fb652f59185f550
Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/scvpp/tests/scvpp_nat_test.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/scvpp/tests/scvpp_nat_test.c b/src/scvpp/tests/scvpp_nat_test.c index 044102e..93541e9 100644 --- a/src/scvpp/tests/scvpp_nat_test.c +++ b/src/scvpp/tests/scvpp_nat_test.c @@ -42,7 +42,6 @@ void test_nat44_static_mapping(void **state) sizeof(map.local_ip_address)); sc_aton("172.168.8.5", map.external_ip_address, sizeof(map.external_ip_address)); - map.addr_only = 1; map.external_sw_if_index = ~0; map.is_add = 1; @@ -52,8 +51,6 @@ void test_nat44_static_mapping(void **state) rc = nat44_static_mapping_dump(&dump); assert_int_equal(rc, SCVPP_OK); - assert_int_equal(dump.addr_only, map.addr_only); - assert_memory_equal(dump.local_ip_address, map.local_ip_address, sizeof(dump.local_ip_address)); @@ -71,8 +68,6 @@ void test_nat44_static_mapping(void **state) rc = nat44_static_mapping_dump(&dump); assert_int_equal(rc, SCVPP_OK); - assert_int_equal(dump.addr_only, 0); - assert_memory_equal(dump.local_ip_address, empty_ip, sizeof(dump.local_ip_address)); @@ -119,8 +114,6 @@ void test_nat44_static_mapping_with_ports(void **state) map.protocol = 6; - map.addr_only = 0; - map.external_sw_if_index = ~0; map.external_port = eport; @@ -134,8 +127,6 @@ void test_nat44_static_mapping_with_ports(void **state) rc = nat44_static_mapping_dump(&dump); assert_int_equal(rc, SCVPP_OK); - assert_int_equal(dump.addr_only, map.addr_only); - assert_memory_equal(dump.local_ip_address, map.local_ip_address, sizeof(dump.local_ip_address)); @@ -158,8 +149,6 @@ void test_nat44_static_mapping_with_ports(void **state) rc = nat44_static_mapping_dump(&dump); assert_int_equal(rc, SCVPP_OK); - assert_int_equal(dump.addr_only, 0); - assert_memory_equal(dump.local_ip_address, empty_ip, sizeof(dump.local_ip_address)); |