Lines Matching defs:icmp
38 #include "icmp.h"
297 struct icmp *icmp;
346 icmp = (struct icmp *) sendbuf;
347 icmp->icmp_type = ICMP_ECHO;
348 icmp->icmp_code = 0;
349 icmp->icmp_id = htons(pid);
350 icmp->icmp_seq = htons(seq);
355 icmp->icmp_cksum = 0;
356 icmp->icmp_cksum = in_cksum((u_short *)icmp, 64);
380 icmp = (struct icmp *) (recvbuf + hlen1);
385 if (icmplen >= 8 && icmp->icmp_type == ICMP_ECHOREPLY &&
386 (ntohs(icmp->icmp_seq) == seq) && (ntohs(icmp->icmp_id) == pid)) {