summaryrefslogtreecommitdiffstats
path: root/test/ext/vapi_c_test.c
diff options
context:
space:
mode:
authorJakub Grajciar <jgrajcia@cisco.com>2019-10-24 13:52:42 +0200
committerOle Trøan <otroan@employees.org>2020-03-09 13:46:29 +0000
commit145e330f019920b5ef77f4e8b3fa70de3228710d (patch)
tree7eede6c2dfa7a3f0568071c9f1bbf6aa8319fb71 /test/ext/vapi_c_test.c
parent262971e7830413c58b9b45965f799f540e634437 (diff)
l2: API cleanup
Use consistent API types. Type: fix Change-Id: I7ac7cd00606101864fa3422e7b9ea2f1143665dd Signed-off-by: Jakub Grajciar <jgrajcia@cisco.com>
Diffstat (limited to 'test/ext/vapi_c_test.c')
-rw-r--r--test/ext/vapi_c_test.c50
1 files changed, 0 insertions, 50 deletions
diff --git a/test/ext/vapi_c_test.c b/test/ext/vapi_c_test.c
index 51fc572746f..a91e4014761 100644
--- a/test/ext/vapi_c_test.c
+++ b/test/ext/vapi_c_test.c
@@ -131,11 +131,6 @@ START_TEST (test_hton_4)
d->header._vl_msg_id = cnt++;
d->header.context = cnt++;
d->payload.bd_id = cnt++;
- d->payload.flood = cnt++;
- d->payload.uu_flood = cnt++;
- d->payload.forward = cnt++;
- d->payload.learn = cnt++;
- d->payload.arp_term = cnt++;
d->payload.mac_age = cnt++;
d->payload.bvi_sw_if_index = cnt++;
d->payload.n_sw_ifs = vla_count;
@@ -156,16 +151,6 @@ START_TEST (test_hton_4)
++tmp;
verify_hton_swap (d->payload.bd_id, tmp);
++tmp;
- verify_hton_swap (d->payload.flood, tmp);
- ++tmp;
- verify_hton_swap (d->payload.uu_flood, tmp);
- ++tmp;
- verify_hton_swap (d->payload.forward, tmp);
- ++tmp;
- verify_hton_swap (d->payload.learn, tmp);
- ++tmp;
- verify_hton_swap (d->payload.arp_term, tmp);
- ++tmp;
verify_hton_swap (d->payload.mac_age, tmp);
++tmp;
verify_hton_swap (d->payload.bvi_sw_if_index, tmp);
@@ -189,16 +174,6 @@ START_TEST (test_hton_4)
++tmp;
ck_assert_int_eq (d->payload.bd_id, tmp);
++tmp;
- ck_assert_int_eq (d->payload.flood, tmp);
- ++tmp;
- ck_assert_int_eq (d->payload.uu_flood, tmp);
- ++tmp;
- ck_assert_int_eq (d->payload.forward, tmp);
- ++tmp;
- ck_assert_int_eq (d->payload.learn, tmp);
- ++tmp;
- ck_assert_int_eq (d->payload.arp_term, tmp);
- ++tmp;
ck_assert_int_eq (d->payload.mac_age, tmp);
++tmp;
ck_assert_int_eq (d->payload.bvi_sw_if_index, tmp);
@@ -268,11 +243,6 @@ START_TEST (test_ntoh_4)
d->header._vl_msg_id = cnt++;
d->header.context = cnt++;
d->payload.bd_id = cnt++;
- d->payload.flood = cnt++;
- d->payload.uu_flood = cnt++;
- d->payload.forward = cnt++;
- d->payload.learn = cnt++;
- d->payload.arp_term = cnt++;
d->payload.mac_age = cnt++;
d->payload.bvi_sw_if_index = cnt++;
d->payload.n_sw_ifs = htobe32 (vla_count);
@@ -293,16 +263,6 @@ START_TEST (test_ntoh_4)
++tmp;
verify_ntoh_swap (d->payload.bd_id, tmp);
++tmp;
- verify_ntoh_swap (d->payload.flood, tmp);
- ++tmp;
- verify_ntoh_swap (d->payload.uu_flood, tmp);
- ++tmp;
- verify_ntoh_swap (d->payload.forward, tmp);
- ++tmp;
- verify_ntoh_swap (d->payload.learn, tmp);
- ++tmp;
- verify_ntoh_swap (d->payload.arp_term, tmp);
- ++tmp;
verify_ntoh_swap (d->payload.mac_age, tmp);
++tmp;
verify_ntoh_swap (d->payload.bvi_sw_if_index, tmp);
@@ -326,16 +286,6 @@ START_TEST (test_ntoh_4)
++tmp;
ck_assert_int_eq (d->payload.bd_id, tmp);
++tmp;
- ck_assert_int_eq (d->payload.flood, tmp);
- ++tmp;
- ck_assert_int_eq (d->payload.uu_flood, tmp);
- ++tmp;
- ck_assert_int_eq (d->payload.forward, tmp);
- ++tmp;
- ck_assert_int_eq (d->payload.learn, tmp);
- ++tmp;
- ck_assert_int_eq (d->payload.arp_term, tmp);
- ++tmp;
ck_assert_int_eq (d->payload.mac_age, tmp);
++tmp;
ck_assert_int_eq (d->payload.bvi_sw_if_index, tmp);