diff mbox

[API-NEXT,PATCHv4,4/6] validataion: packet: add tests for broadcast and multicast flags

Message ID 1453985264-3807-5-git-send-email-bill.fischofer@linaro.org
State Superseded
Headers show

Commit Message

Bill Fischofer Jan. 28, 2016, 12:47 p.m. UTC
Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org>
---
 test/validation/packet/packet.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
diff mbox

Patch

diff --git a/test/validation/packet/packet.c b/test/validation/packet/packet.c
index 2467dec..c5e2356 100644
--- a/test/validation/packet/packet.c
+++ b/test/validation/packet/packet.c
@@ -609,12 +609,16 @@  void packet_test_in_flags(void)
 	TEST_INFLAG(pkt, l3);
 	TEST_INFLAG(pkt, l4);
 	TEST_INFLAG(pkt, eth);
+	TEST_INFLAG(pkt, eth_bcast);
+	TEST_INFLAG(pkt, eth_mcast);
 	TEST_INFLAG(pkt, jumbo);
 	TEST_INFLAG(pkt, vlan);
 	TEST_INFLAG(pkt, vlan_qinq);
 	TEST_INFLAG(pkt, arp);
 	TEST_INFLAG(pkt, ipv4);
 	TEST_INFLAG(pkt, ipv6);
+	TEST_INFLAG(pkt, ip_bcast);
+	TEST_INFLAG(pkt, ip_mcast);
 	TEST_INFLAG(pkt, ipfrag);
 	TEST_INFLAG(pkt, ipopt);
 	TEST_INFLAG(pkt, ipsec);
@@ -724,13 +728,16 @@  static void _packet_compare_inflags(odp_packet_t pkt1, odp_packet_t pkt2)
 	COMPARE_INFLAG(pkt1, pkt2, l3);
 	COMPARE_INFLAG(pkt1, pkt2, l4);
 	COMPARE_INFLAG(pkt1, pkt2, eth);
+	COMPARE_INFLAG(pkt1, pkt2, eth_bcast);
+	COMPARE_INFLAG(pkt1, pkt2, eth_mcast);
 	COMPARE_INFLAG(pkt1, pkt2, jumbo);
-	COMPARE_INFLAG(pkt1, pkt2, eth);
 	COMPARE_INFLAG(pkt1, pkt2, vlan);
 	COMPARE_INFLAG(pkt1, pkt2, vlan_qinq);
 	COMPARE_INFLAG(pkt1, pkt2, arp);
 	COMPARE_INFLAG(pkt1, pkt2, ipv4);
 	COMPARE_INFLAG(pkt1, pkt2, ipv6);
+	COMPARE_INFLAG(pkt1, pkt2, ip_bcast);
+	COMPARE_INFLAG(pkt1, pkt2, ip_mcast);
 	COMPARE_INFLAG(pkt1, pkt2, ipfrag);
 	COMPARE_INFLAG(pkt1, pkt2, ipopt);
 	COMPARE_INFLAG(pkt1, pkt2, ipsec);