Lines Matching refs:iphdr
187 int is_ipv4_fragment(struct iphdr *ip) { in is_ipv4_fragment()
201 int ipv4_fragment_offset(struct iphdr *ip) { in ipv4_fragment_offset()
217 struct iphdr *ip = (struct iphdr *)packet; in check_packet()
296 struct iphdr *ip = nullptr; in reassemble_packet()
312 struct iphdr *ip_orig = (struct iphdr *)packet; in reassemble_packet()
322 ip = (struct iphdr *)reassembled; in reassemble_packet()
409 struct iphdr *ip = (struct iphdr *)packet; in fix_udp_checksum()
525 struct iphdr *ip; in get_transport_checksum()
533 ip = (struct iphdr *)packet; in get_transport_checksum()
613 ASSERT_EQ(sizeof(struct iphdr), sizeof(v4_header)) << "Test IPv4 header: incorrect length\n"; in TEST_F()
624 udp = (struct udphdr *)(v4_udp_packet + sizeof(struct iphdr)); in TEST_F()
648 ASSERT_TRUE(!is_ipv4_fragment((struct iphdr *)reassembled)) in TEST_F()
665 pseudo_checksum = ipv4_pseudo_header_checksum((struct iphdr *)v4_header, UDP_LEN); in TEST_F()
688 uint32_t ipv4_pseudo_sum = ipv4_pseudo_header_checksum((struct iphdr *)ip, UDP_LEN); in TEST_F()