/[lwip]/lwip/src/core/ipv6/icmp6.c
ViewVC logotype

Diff of /lwip/src/core/ipv6/icmp6.c

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

revision 1.8 by likewise, Sun May 18 22:29:10 2003 UTC revision 1.9 by likewise, Mon Jun 9 21:14:47 2003 UTC
# Line 101  icmp_input(struct pbuf *p, struct netif Line 101  icmp_input(struct pbuf *p, struct netif
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));
# Line 140  icmp_dest_unreach(struct pbuf *p, enum i Line 140  icmp_dest_unreach(struct pbuf *p, enum i
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  /*-----------------------------------------------------------------------------------*/  /*-----------------------------------------------------------------------------------*/
# Line 171  icmp_time_exceeded(struct pbuf *p, enum Line 171  icmp_time_exceeded(struct pbuf *p, enum
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    

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

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