Home
last modified time | relevance | path

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

/external/u-boot/net/
Dping.c84 struct icmp_hdr *icmph = (struct icmp_hdr *)&ip->udp_src; in ping_receive() local
88 switch (icmph->type) { in ping_receive()
107 icmph->type = ICMP_ECHO_REPLY; in ping_receive()
108 icmph->checksum = 0; in ping_receive()
109 icmph->checksum = compute_ip_checksum(icmph, len - IP_HDR_SIZE); in ping_receive()
Dnet.c1028 struct icmp_hdr *icmph = (struct icmp_hdr *)&ip->udp_src; in receive_icmp() local
1030 switch (icmph->type) { in receive_icmp()
1032 if (icmph->code != ICMP_REDIR_HOST) in receive_icmp()
1035 &icmph->un.gateway); in receive_icmp()
1043 packet_icmp_handler(icmph->type, icmph->code, in receive_icmp()
1045 ntohs(ip->udp_src), icmph->un.data, in receive_icmp()
/external/iputils/
Dping6.c1276 struct icmp6_hdr icmph; in receive_error_msg() local
1282 iov.iov_base = &icmph; in receive_error_msg()
1283 iov.iov_len = sizeof(icmph); in receive_error_msg()
1320 if (res < sizeof(icmph) || in receive_error_msg()
1322 icmph.icmp6_type != ICMP6_ECHO_REQUEST || in receive_error_msg()
1323 !is_ours(icmph.icmp6_id)) { in receive_error_msg()
1337 printf("From %s icmp_seq=%u ", pr_addr(&sin6->sin6_addr), ntohs(icmph.icmp6_seq)); in receive_error_msg()
1359 struct icmp6_hdr *icmph; in build_echo() local
1362 icmph = (struct icmp6_hdr *)_icmph; in build_echo()
1363 icmph->icmp6_type = ICMP6_ECHO_REQUEST; in build_echo()
[all …]
Dping.c616 struct icmphdr icmph; in receive_error_msg() local
622 iov.iov_base = &icmph; in receive_error_msg()
623 iov.iov_len = sizeof(icmph); in receive_error_msg()
661 if (res < sizeof(icmph) || in receive_error_msg()
663 icmph.type != ICMP_ECHO || in receive_error_msg()
664 !is_ours(icmph.un.echo.id)) { in receive_error_msg()
673 acknowledge(ntohs(icmph.un.echo.sequence)); in receive_error_msg()
699 printf("From %s: icmp_seq=%u ", pr_addr(sin->sin_addr.s_addr), ntohs(icmph.un.echo.sequence)); in receive_error_msg()
Dping_common.c870 int gather_statistics(__u8 *icmph, int icmplen, in gather_statistics() argument
873 void (*pr_reply)(__u8 *icmph, int cc)) in gather_statistics() argument
877 __u8 *ptr = icmph + icmplen; in gather_statistics()
944 pr_reply(icmph, cc); in gather_statistics()
/external/iputils/ninfod/
Dninfod.c705 struct icmp6_hdr *icmph; in main() local
753 icmph = (struct icmp6_hdr *)p->query; in main()
757 icmph->icmp6_type, icmph->icmp6_code, in main()
758 ntohs(icmph->icmp6_cksum)); in main()
760 if (icmph->icmp6_type != ICMP6_NI_QUERY) { in main()
763 icmph->icmp6_type, saddrbuf); in main()
/external/honggfuzz/examples/linux_kernel_ip/
Dlinux-kernel-4.10.0.patch59 if (!pskb_pull(skb, sizeof(*icmph)))