Home | History | Annotate | Download | only in slirp

Lines Matching full:icmp

42 static const char icmp_ping_msg[] = "This is a pseudo-PING packet used by Slirp to emulate ICMP ECHO-REQUEST packets.\n";
44 /* list of actions for icmp_error() on RX of an icmp message */
68 * Process a received ICMP message.
73 register struct icmp *icp;
85 * Locate icmp structure in mbuf, and check
97 icp = mtod(m, struct icmp *);
185 * Send an ICMP message in response to a situation
198 * ICMP fragmentation is illegal. All machines must accept 576 bytes in one
199 * packet. The maximum payload is 576-20(ip hdr)-8(icmp hdr)=548
209 register struct icmp *icp;
233 icp = (struct icmp *)((char *)ip + shlen);
235 * Assume any unknown ICMP type is an error. This isn't
254 /* fill in icmp */
258 icp = mtod(m, struct icmp *);
264 m->m_len=ICMP_MINLEN+s_ip_len; /* 8 bytes ICMP header */
279 if(message) { /* DEBUG : append message to ICMP packet */
325 register struct icmp *icp;
328 * Send an icmp packet back to the ip level,
333 icp = mtod(m, struct icmp *);