From 28bb25aee9898b50468233e896aab018e68bf787 Mon Sep 17 00:00:00 2001 From: Hongjun Ni Date: Tue, 14 May 2019 00:19:35 +0800 Subject: Remove "addr_only" field in NAT to adopt VPP API change Change-Id: Iaa02e72eecb3b557227ca0136fb652f59185f550 Signed-off-by: Hongjun Ni --- src/scvpp/tests/scvpp_nat_test.c | 11 ----------- 1 file changed, 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)); -- cgit 1.2.3-korg