Lines Matching refs:icmppkt
694 struct icmp *icmppkt; in unpack4() local
706 icmppkt = (struct icmp *) (buf + hlen); in unpack4()
707 if (icmppkt->icmp_id != myid) in unpack4()
710 if (icmppkt->icmp_type == ICMP_ECHOREPLY) { in unpack4()
711 uint16_t recv_seq = ntohs(icmppkt->icmp_seq); in unpack4()
715 tp = (uint32_t *) icmppkt->icmp_data; in unpack4()
721 if (icmppkt->icmp_type != ICMP_ECHO) { in unpack4()
723 icmppkt->icmp_type, in unpack4()
724 icmp_type_name(icmppkt->icmp_type)); in unpack4()
731 struct icmp6_hdr *icmppkt; in unpack6() local
738 icmppkt = (struct icmp6_hdr *) packet; in unpack6()
739 if (icmppkt->icmp6_id != myid) in unpack6()
742 if (icmppkt->icmp6_type == ICMP6_ECHO_REPLY) { in unpack6()
743 uint16_t recv_seq = ntohs(icmppkt->icmp6_seq); in unpack6()
747 tp = (uint32_t *) &icmppkt->icmp6_data8[4]; in unpack6()
754 if (icmppkt->icmp6_type != ICMP6_ECHO_REQUEST) { in unpack6()
756 icmppkt->icmp6_type, in unpack6()
757 icmp6_type_name(icmppkt->icmp6_type)); in unpack6()