/[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 by likewise, Wed Jun 11 22:11:42 2003 UTC revision 1.16.2.1 by kieranm, Thu Aug 21 09:59:21 2003 UTC
# Line 126  icmp_input(struct pbuf *p, struct netif Line 126  icmp_input(struct pbuf *p, struct netif
126      snmp_inc_icmpoutechoreps();      snmp_inc_icmpoutechoreps();
127    
128      pbuf_header(p, hlen);      pbuf_header(p, hlen);
129      ip_output_if (p, &(iphdr->src), IP_HDRINCL,      ip_output_if(p, &(iphdr->src), IP_HDRINCL,
130       IPH_TTL(iphdr), IP_PROTO_ICMP, inp);                   IPH_TTL(iphdr), 0, IP_PROTO_ICMP, inp);
131      break;      break;
132    default:    default:
133    LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: ICMP type %d code %d not supported.\n", (int)type, (int)code));    LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: ICMP type %d code %d not supported.\n", (int)type, (int)code));
# Line 169  icmp_dest_unreach(struct pbuf *p, enum i Line 169  icmp_dest_unreach(struct pbuf *p, enum i
169    snmp_inc_icmpoutdestunreachs();    snmp_inc_icmpoutdestunreachs();
170    
171    ip_output(q, NULL, &(iphdr->src),    ip_output(q, NULL, &(iphdr->src),
172        ICMP_TTL, IP_PROTO_ICMP);              ICMP_TTL, 0, IP_PROTO_ICMP);
173    pbuf_free(q);    pbuf_free(q);
174  }  }
175  /*-----------------------------------------------------------------------------------*/  /*-----------------------------------------------------------------------------------*/
# Line 210  icmp_time_exceeded(struct pbuf *p, enum Line 210  icmp_time_exceeded(struct pbuf *p, enum
210    /* increase number of destination unreachable messages attempted to send */    /* increase number of destination unreachable messages attempted to send */
211    snmp_inc_icmpouttimeexcds();    snmp_inc_icmpouttimeexcds();
212    ip_output(q, NULL, &(iphdr->src),    ip_output(q, NULL, &(iphdr->src),
213        ICMP_TTL, IP_PROTO_ICMP);              ICMP_TTL, 0, IP_PROTO_ICMP);
214    pbuf_free(q);    pbuf_free(q);
215  }  }
216    

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.16.2.1

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