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

Lines Matching refs:msrc

196  * Send ICMP_UNREACH back to the source regarding msrc.
197 * mbuf *msrc is used as a template, but is NOT m_free()'d.
206 icmp_error(struct mbuf *msrc, u_char type, u_char code, int minsize,
215 DEBUG_ARG("msrc = %lx", (long )msrc);
216 DEBUG_ARG("msrc_len = %d", msrc->m_len);
220 /* check msrc */
221 if(!msrc) goto end_error;
222 ip = mtod(msrc, struct ip *);
246 new_m_size=sizeof(struct ip )+ICMP_MINLEN+msrc->m_len+ICMP_MAXDATALEN;
249 memcpy(m->m_data, msrc->m_data, msrc->m_len);
250 m->m_len = msrc->m_len; /* copy msrc to m */
275 memcpy(&icp->icmp_ip, msrc->m_data, s_ip_len); /* report the ip packet */