101 |
|
|
102 |
/* DEBUGF("icmp: p->len %d p->tot_len %d\n", p->len, p->tot_len);*/ |
/* DEBUGF("icmp: p->len %d p->tot_len %d\n", p->len, p->tot_len);*/ |
103 |
ip_output_if (p, &(iphdr->src), IP_HDRINCL, |
ip_output_if (p, &(iphdr->src), IP_HDRINCL, |
104 |
iphdr->hoplim, IP_PROTO_ICMP, inp); |
iphdr->hoplim, IP_PROTO_ICMP, inp); |
105 |
break; |
break; |
106 |
default: |
default: |
107 |
DEBUGF(ICMP_DEBUG, ("icmp_input: ICMP type %d not supported.\n", (int)type)); |
DEBUGF(ICMP_DEBUG, ("icmp_input: ICMP type %d not supported.\n", (int)type)); |
140 |
#endif /* ICMP_STATS */ |
#endif /* ICMP_STATS */ |
141 |
|
|
142 |
ip_output(q, NULL, |
ip_output(q, NULL, |
143 |
(struct ip_addr *)&(iphdr->src), ICMP_TTL, IP_PROTO_ICMP); |
(struct ip_addr *)&(iphdr->src), ICMP_TTL, IP_PROTO_ICMP); |
144 |
pbuf_free(q); |
pbuf_free(q); |
145 |
} |
} |
146 |
/*-----------------------------------------------------------------------------------*/ |
/*-----------------------------------------------------------------------------------*/ |
171 |
++lwip_stats.icmp.xmit; |
++lwip_stats.icmp.xmit; |
172 |
#endif /* ICMP_STATS */ |
#endif /* ICMP_STATS */ |
173 |
ip_output(q, NULL, |
ip_output(q, NULL, |
174 |
(struct ip_addr *)&(iphdr->src), ICMP_TTL, IP_PROTO_ICMP); |
(struct ip_addr *)&(iphdr->src), ICMP_TTL, IP_PROTO_ICMP); |
175 |
pbuf_free(q); |
pbuf_free(q); |
176 |
} |
} |
177 |
|
|