Home | History | Annotate | Download | only in ping

Lines Matching refs:icmp

38  * Using the InterNet Control Message Protocol (ICMP) "ECHO" facility,
56 * This program has to run SUID to ROOT to access the ICMP socket.
102 #define F_SEMI_QUIET 0x0004 /* ignore our ICMP errors */
177 u_char u_buf[MAXPACKET+offsetof(struct icmp, icmp_data)];
178 struct icmp u_icmp;
231 static void pr_iph(struct icmp *, int);
232 static void pr_retip(struct icmp *, int);
233 static int pr_icmph(struct icmp *, struct sockaddr_in *, int);
886 * Compose and transmit an ICMP ECHO REQUEST packet. The IP packet
904 /* clear the cached route in the kernel after an ICMP
1056 * because ALL readers of the ICMP socket get a copy of ALL ICMP packets
1066 struct icmp *icp;
1091 /* Now the ICMP part */
1094 icp = (struct icmp *)(buf + hlen);
1189 offsetof(struct icmp, icmp_data) + datalen
1507 ck_pr_icmph(struct icmp *icp,
1514 struct icmp icp2b, *icp2 = &icp2b;
1531 * if this non-Echo-Reply ICMP message was for one
1551 * Print a descriptive string about an ICMP header other than an echo reply.
1554 pr_icmph(struct icmp *icp,
1749 (void)printf("Bad ICMP type: %d", icp->icmp_type);
1762 pr_iph(struct icmp *icp,
1831 * Dump some info on a returned (via ICMP) IP packet.
1834 pr_retip(struct icmp *icp,
1858 struct icmp icp2;