Home
last modified time | relevance | path

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

/external/iputils/
Dping6.c1278 struct icmp6_hdr icmph; in receive_error_msg() local
1284 iov.iov_base = &icmph; in receive_error_msg()
1285 iov.iov_len = sizeof(icmph); in receive_error_msg()
1322 if (res < sizeof(icmph) || in receive_error_msg()
1324 icmph.icmp6_type != ICMP6_ECHO_REQUEST || in receive_error_msg()
1325 !is_ours(icmph.icmp6_id)) { in receive_error_msg()
1339 printf("From %s icmp_seq=%u ", pr_addr(&sin6->sin6_addr), ntohs(icmph.icmp6_seq)); in receive_error_msg()
1361 struct icmp6_hdr *icmph; in build_echo() local
1364 icmph = (struct icmp6_hdr *)_icmph; in build_echo()
1365 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()