Lines Matching refs:icmph
1276 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()
1364 icmph->icmp6_code = 0; in build_echo()
1365 icmph->icmp6_cksum = 0; in build_echo()
1366 icmph->icmp6_seq = htons(ntransmitted+1); in build_echo()
1367 icmph->icmp6_id = ident; in build_echo()
1440 struct icmp6_hdr *icmph = (struct icmp6_hdr *) _icmph; in pr_echo_reply() local
1441 printf(" icmp_seq=%u", ntohs(icmph->icmp6_seq)); in pr_echo_reply()
1592 struct icmp6_hdr *icmph; in parse_reply() local
1612 icmph = (struct icmp6_hdr *) buf; in parse_reply()
1619 if (icmph->icmp6_type == ICMP6_ECHO_REPLY) { in parse_reply()
1620 if (!is_ours(icmph->icmp6_id)) in parse_reply()
1622 if (gather_statistics((__u8*)icmph, sizeof(*icmph), cc, in parse_reply()
1623 ntohs(icmph->icmp6_seq), in parse_reply()
1627 } else if (icmph->icmp6_type == ICMPV6_NI_REPLY) { in parse_reply()
1628 struct ni_hdr *nih = (struct ni_hdr *)icmph; in parse_reply()
1632 if (gather_statistics((__u8*)icmph, sizeof(*icmph), cc, in parse_reply()
1639 struct ip6_hdr *iph1 = (struct ip6_hdr*)(icmph+1); in parse_reply()
1682 pr_icmph(icmph->icmp6_type, icmph->icmp6_code, ntohl(icmph->icmp6_mtu)); in parse_reply()