Lines Matching refs:udphdr
277 struct udphdr *udp = (struct udphdr *) payload; in check_packet()
399 struct udphdr *udp; in fix_udp_checksum()
403 udp = (struct udphdr *) (ip + 1); in fix_udp_checksum()
409 udp = (struct udphdr *) (ip6 + 1); in fix_udp_checksum()
545 return ((struct udphdr *) payload)->check; in get_transport_checksum()
751 ASSERT_EQ(sizeof(struct udphdr), sizeof(udp_header)) << "Test UDP header: incorrect length\n"; in TEST_F()
754 struct udphdr *udp; in TEST_F()
756 udp = (struct udphdr *) (v4_udp_packet + sizeof(struct iphdr)); in TEST_F()
762 udp = (struct udphdr *) (v6_udp_packet + sizeof(struct ip6_hdr)); in TEST_F()
811 uint8_t udphdr[] = { UDP_HEADER }; in TEST_F() local
813 EXPECT_EQ(kUdpPartialChecksum, ip_checksum_add(0, udphdr, sizeof(udphdr))) in TEST_F()