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

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

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

revision 1.1.1.1 by likewise, Sat Oct 19 13:00:37 2002 UTC revision 1.2 by jani, Wed Dec 18 12:49:02 2002 UTC
# Line 134  ip_forward(struct pbuf *p, struct ip_hdr Line 134  ip_forward(struct pbuf *p, struct ip_hdr
134    DEBUGF(IP_DEBUG, ("\n"));    DEBUGF(IP_DEBUG, ("\n"));
135    
136  #ifdef IP_STATS  #ifdef IP_STATS
137    ++stats.ip.fw;    ++lwip_stats.ip.fw;
138    ++stats.ip.xmit;    ++lwip_stats.ip.xmit;
139  #endif /* IP_STATS */  #endif /* IP_STATS */
140    
141    PERF_STOP("ip_forward");    PERF_STOP("ip_forward");
# Line 167  ip_input(struct pbuf *p, struct netif *i Line 167  ip_input(struct pbuf *p, struct netif *i
167    
168        
169  #ifdef IP_STATS  #ifdef IP_STATS
170    ++stats.ip.recv;    ++lwip_stats.ip.recv;
171  #endif /* IP_STATS */  #endif /* IP_STATS */
172        
173    /* identify the IP header */    /* identify the IP header */
# Line 181  ip_input(struct pbuf *p, struct netif *i Line 181  ip_input(struct pbuf *p, struct netif *i
181  #endif /* IP_DEBUG */  #endif /* IP_DEBUG */
182      pbuf_free(p);      pbuf_free(p);
183  #ifdef IP_STATS  #ifdef IP_STATS
184      ++stats.ip.err;      ++lwip_stats.ip.err;
185      ++stats.ip.drop;      ++lwip_stats.ip.drop;
186  #endif /* IP_STATS */  #endif /* IP_STATS */
187      return;      return;
188    }    }
# Line 241  ip_input(struct pbuf *p, struct netif *i Line 241  ip_input(struct pbuf *p, struct netif *i
241                        iphdr->nexthdr));                        iphdr->nexthdr));
242    
243  #ifdef IP_STATS  #ifdef IP_STATS
244      ++stats.ip.proterr;      ++lwip_stats.ip.proterr;
245      ++stats.ip.drop;      ++lwip_stats.ip.drop;
246  #endif /* IP_STATS */  #endif /* IP_STATS */
247    
248    }    }
# Line 270  ip_output_if(struct pbuf *p, struct ip_a Line 270  ip_output_if(struct pbuf *p, struct ip_a
270    if(pbuf_header(p, IP_HLEN)) {    if(pbuf_header(p, IP_HLEN)) {
271      DEBUGF(IP_DEBUG, ("ip_output: not enough room for IP header in pbuf\n"));      DEBUGF(IP_DEBUG, ("ip_output: not enough room for IP header in pbuf\n"));
272  #ifdef IP_STATS  #ifdef IP_STATS
273      ++stats.ip.err;      ++lwip_stats.ip.err;
274  #endif /* IP_STATS */  #endif /* IP_STATS */
275    
276      return ERR_BUF;      return ERR_BUF;
# Line 300  ip_output_if(struct pbuf *p, struct ip_a Line 300  ip_output_if(struct pbuf *p, struct ip_a
300    }    }
301    
302  #ifdef IP_STATS  #ifdef IP_STATS
303    ++stats.ip.xmit;    ++lwip_stats.ip.xmit;
304  #endif /* IP_STATS */  #endif /* IP_STATS */
305    
306    DEBUGF(IP_DEBUG, ("ip_output_if: %c%c (len %d)\n", netif->name[0], netif->name[1], p->tot_len));    DEBUGF(IP_DEBUG, ("ip_output_if: %c%c (len %d)\n", netif->name[0], netif->name[1], p->tot_len));
# Line 326  ip_output(struct pbuf *p, struct ip_addr Line 326  ip_output(struct pbuf *p, struct ip_addr
326    if((netif = ip_route(dest)) == NULL) {    if((netif = ip_route(dest)) == NULL) {
327      DEBUGF(IP_DEBUG, ("ip_output: No route to 0x%lx\n", dest->addr));      DEBUGF(IP_DEBUG, ("ip_output: No route to 0x%lx\n", dest->addr));
328  #ifdef IP_STATS  #ifdef IP_STATS
329      ++stats.ip.rterr;      ++lwip_stats.ip.rterr;
330  #endif /* IP_STATS */  #endif /* IP_STATS */
331      return ERR_RTE;      return ERR_RTE;
332    }    }

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.2

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