/[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.13 by likewise, Thu May 1 13:24:01 2003 UTC revision 1.14 by likewise, Mon Jun 9 21:14:47 2003 UTC
# Line 127  icmp_input(struct pbuf *p, struct netif Line 127  icmp_input(struct pbuf *p, struct netif
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), IP_PROTO_ICMP, inp);
131      break;      break;
132    default:    default:
133    DEBUGF(ICMP_DEBUG, ("icmp_input: ICMP type %d code %d not supported.\n", (int)type, (int)code));    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, 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, IP_PROTO_ICMP);
214    pbuf_free(q);    pbuf_free(q);
215  }  }
216    

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

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