Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add a arp test.

  • Loading branch information...
commit ed02d08b93b2af8a136f9e2f93dfab7379fd0aef 1 parent 8ed8578
@kazuyas kazuyas authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  unittests/lib/packet_parser_test.c
View
3  unittests/lib/packet_parser_test.c
@@ -142,6 +142,7 @@ test_parse_packet_arp_request_succeeds() {
assert_memory_equal( packet_info->arp_tha, maczero, ETH_ADDRLEN );
assert_true( packet_type_arp_request( buffer ) );
+ assert_false( packet_type_arp_reply( buffer ) );
free_buffer( buffer );
}
@@ -169,7 +170,7 @@ test_parse_packet_ipv6_succeeds() {
0x8e, 0x89, 0xa5, 0xff, 0xfe, 0x15, 0x84, 0xcb };
assert_memory_equal( packet_info->ipv6_saddr, saddr, IPV6_ADDRLEN );
assert_memory_equal( packet_info->ipv6_daddr, daddr, IPV6_ADDRLEN );
-
+
free_buffer( buffer );
}
Please sign in to comment.
Something went wrong with that request. Please try again.