/[lwip]/lwip/src/core/ipv4/icmp.c
ViewVC logotype

Diff of /lwip/src/core/ipv4/icmp.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.16.2.2 by jani, Tue Oct 28 11:44:44 2003 UTC revision 1.16.2.3 by jani, Tue Nov 4 11:47:50 2003 UTC
# Line 168  icmp_time_exceeded(struct pbuf *p, enum Line 168  icmp_time_exceeded(struct pbuf *p, enum
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);
# Line 196  icmp_time_exceeded(struct pbuf *p, enum Line 194  icmp_time_exceeded(struct pbuf *p, enum
194    pbuf_free(q);    pbuf_free(q);
195  }  }
196    
197  #endif /* IP_FORWARDING > 0 */  #endif /* IP_FORWARD */
198    
199    
200    

Legend:
Removed from v.1.16.2.2  
changed lines
  Added in v.1.16.2.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26