168 |
q = pbuf_alloc(PBUF_IP, 8 + IP_HLEN + 8, PBUF_RAM); |
q = pbuf_alloc(PBUF_IP, 8 + IP_HLEN + 8, PBUF_RAM); |
169 |
|
|
170 |
iphdr = p->payload; |
iphdr = p->payload; |
|
#if ICMP_DEBUG |
|
171 |
LWIP_DEBUGF(ICMP_DEBUG, ("icmp_time_exceeded from ")); |
LWIP_DEBUGF(ICMP_DEBUG, ("icmp_time_exceeded from ")); |
172 |
ip_addr_debug_print(ICMP_DEBUG, &(iphdr->src)); |
ip_addr_debug_print(ICMP_DEBUG, &(iphdr->src)); |
173 |
LWIP_DEBUGF(ICMP_DEBUG, (" to ")); |
LWIP_DEBUGF(ICMP_DEBUG, (" to ")); |
174 |
ip_addr_debug_print(ICMP_DEBUG, &(iphdr->dest)); |
ip_addr_debug_print(ICMP_DEBUG, &(iphdr->dest)); |
175 |
LWIP_DEBUGF(ICMP_DEBUG, ("\n")); |
LWIP_DEBUGF(ICMP_DEBUG, ("\n")); |
|
#endif /* ICMP_DEBNUG */ |
|
176 |
|
|
177 |
tehdr = q->payload; |
tehdr = q->payload; |
178 |
ICMPH_TYPE_SET(tehdr, ICMP_TE); |
ICMPH_TYPE_SET(tehdr, ICMP_TE); |
194 |
pbuf_free(q); |
pbuf_free(q); |
195 |
} |
} |
196 |
|
|
197 |
#endif /* IP_FORWARDING > 0 */ |
#endif /* IP_FORWARD */ |
198 |
|
|
199 |
|
|
200 |
|
|