Searched refs:icmph (Results 1 – 5 of 5) sorted by relevance
/external/linux-kselftest/tools/testing/selftests/bpf/progs/ |
D | xdping_kern.c | 64 struct icmphdr *icmph; in icmp_check() local 81 icmph = data + sizeof(*eth) + sizeof(*iph); in icmp_check() 83 if (icmph->type != type) in icmp_check() 96 struct icmphdr *icmph; in xdping_client() local 110 icmph = data + sizeof(*eth) + sizeof(*iph); in xdping_client() 116 if (!pinginfo || pinginfo->seq != icmph->un.echo.sequence) in xdping_client() 141 icmph->type = ICMP_ECHO; in xdping_client() 142 seq = bpf_htons(bpf_ntohs(icmph->un.echo.sequence) + 1); in xdping_client() 143 icmph->un.echo.sequence = seq; in xdping_client() 144 icmph->checksum = 0; in xdping_client() [all …]
|
/external/iputils/ |
D | ping6.c | 1281 struct icmp6_hdr icmph; in receive_error_msg() local 1287 iov.iov_base = &icmph; in receive_error_msg() 1288 iov.iov_len = sizeof(icmph); in receive_error_msg() 1325 if (res < sizeof(icmph) || in receive_error_msg() 1327 icmph.icmp6_type != ICMP6_ECHO_REQUEST || in receive_error_msg() 1328 !is_ours(icmph.icmp6_id)) { in receive_error_msg() 1342 printf("From %s icmp_seq=%u ", pr_addr(&sin6->sin6_addr), ntohs(icmph.icmp6_seq)); in receive_error_msg() 1364 struct icmp6_hdr *icmph; in build_echo() local 1367 icmph = (struct icmp6_hdr *)_icmph; in build_echo() 1368 icmph->icmp6_type = ICMP6_ECHO_REQUEST; in build_echo() [all …]
|
D | ping.c | 616 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()
|
D | ping_common.c | 870 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/ |
D | ninfod.c | 705 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()
|