Home
last modified time | relevance | path

Searched refs:icmph (Results 1 – 6 of 6) 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()
/external/chromium_org/third_party/usrsctp/usrsctplib/netinet6/
Dsctp6_usrreq.c431 struct icmp6_hdr *icmph, argument
454 if (icmph->icmp6_type != ICMP_UNREACH) {
459 if ((icmph->icmp6_code == ICMP_UNREACH_NET) ||
460 (icmph->icmp6_code == ICMP_UNREACH_HOST) ||
461 (icmph->icmp6_code == ICMP_UNREACH_NET_UNKNOWN) ||
462 (icmph->icmp6_code == ICMP_UNREACH_HOST_UNKNOWN) ||
463 (icmph->icmp6_code == ICMP_UNREACH_ISOLATED) ||
464 (icmph->icmp6_code == ICMP_UNREACH_NET_PROHIB) ||
465 (icmph->icmp6_code == ICMP_UNREACH_HOST_PROHIB) ||
467 (icmph->icmp6_code == ICMP_UNREACH_ADMIN)) {
[all …]
/external/chromium_org/third_party/usrsctp/usrsctplib/netinet/
Dsctp_usrreq.c330 struct icmp *icmph; in sctp_notify_mbuf() local
347 icmph = (struct icmp *)((caddr_t)ip - (sizeof(struct icmp) - in sctp_notify_mbuf()
349 if (icmph->icmp_type != ICMP_UNREACH) { in sctp_notify_mbuf()
354 if (icmph->icmp_code != ICMP_UNREACH_NEEDFRAG) { in sctp_notify_mbuf()
365 nxtsz = ntohs(icmph->icmp_nextmtu); in sctp_notify_mbuf()
409 struct icmp *icmph; local
424 icmph = (struct icmp *)((caddr_t)ip - (sizeof(struct icmp) -
426 if (icmph->icmp_type != ICMP_UNREACH) {
431 if ((icmph->icmp_code == ICMP_UNREACH_NET) ||
432 (icmph->icmp_code == ICMP_UNREACH_HOST) ||
[all …]