Home
last modified time | relevance | path

Searched refs:icmp_hdr (Results 1 – 7 of 7) sorted by relevance

/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_xdp_noinline.c440 struct icmphdr *icmp_hdr; in send_icmp_reply() local
454 icmp_hdr = data + off; in send_icmp_reply()
455 icmp_hdr->type = 0; in send_icmp_reply()
456 icmp_hdr->checksum += 0x0007; in send_icmp_reply()
473 struct icmp6hdr *icmp_hdr; in send_icmp6_reply() local
484 icmp_hdr = data + off; in send_icmp6_reply()
485 icmp_hdr->icmp6_type = 129; in send_icmp6_reply()
486 icmp_hdr->icmp6_cksum -= 0x0001; in send_icmp6_reply()
498 struct icmp6hdr *icmp_hdr; in parse_icmpv6() local
501 icmp_hdr = data + off; in parse_icmpv6()
[all …]
Dtest_l4lb.c239 struct icmp6hdr *icmp_hdr; in parse_icmpv6() local
242 icmp_hdr = data + off; in parse_icmpv6()
243 if (icmp_hdr + 1 > data_end) in parse_icmpv6()
245 if (icmp_hdr->icmp6_type != ICMPV6_PKT_TOOBIG) in parse_icmpv6()
261 struct icmphdr *icmp_hdr; in parse_icmp() local
264 icmp_hdr = data + off; in parse_icmp()
265 if (icmp_hdr + 1 > data_end) in parse_icmp()
267 if (icmp_hdr->type != ICMP_DEST_UNREACH || in parse_icmp()
268 icmp_hdr->code != ICMP_FRAG_NEEDED) in parse_icmp()
Dtest_l4lb_noinline.c239 struct icmp6hdr *icmp_hdr; in parse_icmpv6() local
242 icmp_hdr = data + off; in parse_icmpv6()
243 if (icmp_hdr + 1 > data_end) in parse_icmpv6()
245 if (icmp_hdr->icmp6_type != ICMPV6_PKT_TOOBIG) in parse_icmpv6()
261 struct icmphdr *icmp_hdr; in parse_icmp() local
264 icmp_hdr = data + off; in parse_icmp()
265 if (icmp_hdr + 1 > data_end) in parse_icmp()
267 if (icmp_hdr->type != ICMP_DEST_UNREACH || in parse_icmp()
268 icmp_hdr->code != ICMP_FRAG_NEEDED) in parse_icmp()
/external/u-boot/net/
Dping.c26 struct icmp_hdr *icmp = (struct icmp_hdr *)(pkt + IP_HDR_SIZE); in set_icmp_header()
84 struct icmp_hdr *icmph = (struct icmp_hdr *)&ip->udp_src; in ping_receive()
Dnet.c1028 struct icmp_hdr *icmph = (struct icmp_hdr *)&ip->udp_src; in receive_icmp()
/external/u-boot/drivers/net/
Dsandbox.c116 struct icmp_hdr *icmp = (struct icmp_hdr *)&ip->udp_src; in sb_eth_send()
121 struct icmp_hdr *icmpr; in sb_eth_send()
129 icmpr = (struct icmp_hdr *)&ipr->udp_src; in sb_eth_send()
/external/u-boot/include/
Dnet.h455 struct icmp_hdr { struct
473 #define ICMP_HDR_SIZE (sizeof(struct icmp_hdr)) argument