Lines Matching refs:pkt
32 } pkt; in TEST() member
56 ether_ipv4_udp_pkt.pkt.iphdr.check = 0; in TEST()
58 ether_ipv4_udp_pkt.pkt.udphdr.check = htons(sizeof(ether_ipv4_udp_pkt) - IPV4_HLEN - ETH_HLEN); in TEST()
66 EXPECT_EQ(read_be16((uint8_t *)ðer_ipv4_udp_pkt.pkt.iphdr.check), 0x9535); in TEST()
67 EXPECT_EQ(read_be16((uint8_t *)ðer_ipv4_udp_pkt.pkt.udphdr.check), 0xa73d); in TEST()
79 } pkt; in TEST() member
99 ether_ipv6_udp_pkt.pkt.udphdr.check = htons(sizeof(ether_ipv6_udp_pkt) - IPV6_HLEN - ETH_HLEN); in TEST()
107 EXPECT_EQ(read_be16((uint8_t *)ðer_ipv6_udp_pkt.pkt.udphdr.check), 0x1cbd); in TEST()
119 } pkt; in TEST() member
137 …ether_ipv6_icmp6_pkt.pkt.icmp6hdr.icmp6_cksum = htons(sizeof(ether_ipv6_icmp6_pkt) - IPV6_HLEN - E… in TEST()
145 EXPECT_EQ(read_be16((uint8_t *)ðer_ipv6_icmp6_pkt.pkt.icmp6hdr.icmp6_cksum), 0x8a09); in TEST()
158 } pkt; in TEST() member
178 ether_ipv6_hopopts_icmp6_pkt.pkt.icmp6hdr.icmp6_cksum = in TEST()
180 - sizeof(ether_ipv6_hopopts_icmp6_pkt.pkt.hopopts) in TEST()
187 + sizeof(ether_ipv6_hopopts_icmp6_pkt.pkt.hopopts) in TEST()
192 EXPECT_EQ(read_be16((uint8_t *)ðer_ipv6_hopopts_icmp6_pkt.pkt.icmp6hdr.icmp6_cksum), 0xf760); in TEST()
204 } pkt; in TEST() member
227 ether_ipv4_igmpv2_pkt.pkt.iphdr.check = htons(0x9404); in TEST()
236 EXPECT_EQ(read_be16((uint8_t *)ðer_ipv4_igmpv2_pkt.pkt.iphdr.check), 0x8853); in TEST()