Lines Matching refs:icmph
1278 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()
1366 icmph->icmp6_code = 0; in build_echo()
1367 icmph->icmp6_cksum = 0; in build_echo()
1368 icmph->icmp6_seq = htons(ntransmitted+1); in build_echo()
1369 icmph->icmp6_id = ident; in build_echo()
1442 struct icmp6_hdr *icmph = (struct icmp6_hdr *) _icmph; in pr_echo_reply() local
1443 printf(" icmp_seq=%u", ntohs(icmph->icmp6_seq)); in pr_echo_reply()
1594 struct icmp6_hdr *icmph; in parse_reply() local
1614 icmph = (struct icmp6_hdr *) buf; in parse_reply()
1621 if (icmph->icmp6_type == ICMP6_ECHO_REPLY) { in parse_reply()
1622 if (!is_ours(icmph->icmp6_id)) in parse_reply()
1624 if (gather_statistics((__u8*)icmph, sizeof(*icmph), cc, in parse_reply()
1625 ntohs(icmph->icmp6_seq), in parse_reply()
1629 } else if (icmph->icmp6_type == ICMPV6_NI_REPLY) { in parse_reply()
1630 struct ni_hdr *nih = (struct ni_hdr *)icmph; in parse_reply()
1634 if (gather_statistics((__u8*)icmph, sizeof(*icmph), cc, in parse_reply()
1641 struct ip6_hdr *iph1 = (struct ip6_hdr*)(icmph+1); in parse_reply()
1684 pr_icmph(icmph->icmp6_type, icmph->icmp6_code, ntohl(icmph->icmp6_mtu)); in parse_reply()