Home
last modified time | relevance | path

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

/external/iputils/
Dping6.c1275 struct icmp6_hdr icmph; in receive_error_msg() local
1281 iov.iov_base = &icmph; in receive_error_msg()
1282 iov.iov_len = sizeof(icmph); in receive_error_msg()
1319 if (res < sizeof(icmph) || in receive_error_msg()
1321 icmph.icmp6_type != ICMP6_ECHO_REQUEST || in receive_error_msg()
1322 !is_ours(icmph.icmp6_id)) { in receive_error_msg()
1336 printf("From %s icmp_seq=%u ", pr_addr(&sin6->sin6_addr), ntohs(icmph.icmp6_seq)); in receive_error_msg()
1358 struct icmp6_hdr *icmph; in build_echo() local
1361 icmph = (struct icmp6_hdr *)_icmph; in build_echo()
1362 icmph->icmp6_type = ICMP6_ECHO_REQUEST; in build_echo()
[all …]
Dping.c613 struct icmphdr icmph; in receive_error_msg() local
619 iov.iov_base = &icmph; in receive_error_msg()
620 iov.iov_len = sizeof(icmph); in receive_error_msg()
658 if (res < sizeof(icmph) || in receive_error_msg()
660 icmph.type != ICMP_ECHO || in receive_error_msg()
661 !is_ours(icmph.un.echo.id)) { in receive_error_msg()
670 acknowledge(ntohs(icmph.un.echo.sequence)); in receive_error_msg()
696 printf("From %s: icmp_seq=%u ", pr_addr(sin->sin_addr.s_addr), ntohs(icmph.un.echo.sequence)); in receive_error_msg()
Dping_common.c865 int gather_statistics(__u8 *icmph, int icmplen, in gather_statistics() argument
868 void (*pr_reply)(__u8 *icmph, int cc)) in gather_statistics() argument
872 __u8 *ptr = icmph + icmplen; in gather_statistics()
939 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/libppp/src/
Dip.c568 const struct icmp *icmph; in PacketCheck() local
623 len = datalen - sizeof *icmph; in PacketCheck()
624 icmph = (const struct icmp *)payload; in PacketCheck()
626 "ICMP: %s:%d ---> ", ncpaddr_ntoa(&srcaddr), icmph->icmp_type); in PacketCheck()
/external/kernel-headers/original/linux/
Dskbuff.h244 struct icmphdr *icmph; member