Home | History | Annotate | Download | only in slirp-android

Lines Matching full:icmp

43 static const char icmp_ping_msg[] = "This is a pseudo-PING packet used by Slirp to emulate ICMP ECHO-REQUEST packets.\n";
45 /* list of actions for icmp_error() on RX of an icmp message */
69 * Process a received ICMP message.
74 register struct icmp *icp;
86 * Locate icmp structure in mbuf, and check
98 icp = mtod(m, struct icmp *);
187 * Send an ICMP message in response to a situation
200 * ICMP fragmentation is illegal. All machines must accept 576 bytes in one
201 * packet. The maximum payload is 576-20(ip hdr)-8(icmp hdr)=548
211 register struct icmp *icp;
235 icp = (struct icmp *)((char *)ip + shlen);
237 * Assume any unknown ICMP type is an error. This isn't
256 /* fill in icmp */
260 icp = mtod(m, struct icmp *);
266 m->m_len=ICMP_MINLEN+s_ip_len; /* 8 bytes ICMP header */
281 if(message) { /* DEBUG : append message to ICMP packet */
327 register struct icmp *icp;
330 * Send an icmp packet back to the ip level,
335 icp = mtod(m, struct icmp *);