Lines Matching defs:icmp
603 struct icmp *icmp;
640 icmp = (struct icmp *) sendbuf;
641 icmp->icmp_type = ICMP_ECHO;
642 icmp->icmp_code = 0;
643 icmp->icmp_id = htons(pid);
644 icmp->icmp_seq = htons(seq);
647 memcpy(icmp->icmp_data, &tv, sizeof(tv));
649 icmp->icmp_cksum = 0;
650 icmp->icmp_cksum = in_cksum((u_short *)icmp, plen);
678 icmp = (struct icmp *) (recvbuf + hlen1);
684 if (icmplen >= 8 && icmp->icmp_type == ICMP_ECHOREPLY
685 && (ntohs(icmp->icmp_id) == pid)) {