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"); |
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 */ |
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 |
} |
} |
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 |
} |
} |
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; |
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)); |
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 |
} |
} |