mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-05 22:29:49 +00:00
Minor changes: fix some traces in ip_frag.c (coding style and end of lines)
This commit is contained in:
parent
3572ec784d
commit
baab7c04f7
@ -124,7 +124,7 @@ ip_reass_tmr(void)
|
|||||||
} else {
|
} else {
|
||||||
/* reassembly timed out */
|
/* reassembly timed out */
|
||||||
struct ip_reassdata *tmp;
|
struct ip_reassdata *tmp;
|
||||||
LWIP_DEBUGF(IP_REASS_DEBUG, ("ip_reass_tmr: timer timed out"));
|
LWIP_DEBUGF(IP_REASS_DEBUG, ("ip_reass_tmr: timer timed out\n"));
|
||||||
tmp = r;
|
tmp = r;
|
||||||
/* get the next pointer before freeing */
|
/* get the next pointer before freeing */
|
||||||
r = r->next;
|
r = r->next;
|
||||||
@ -264,7 +264,7 @@ ip_reass_enqueue_new_datagram(struct ip_hdr *fraghdr, int clen)
|
|||||||
#endif /* IP_REASS_FREE_OLDEST */
|
#endif /* IP_REASS_FREE_OLDEST */
|
||||||
{
|
{
|
||||||
IPFRAG_STATS_INC(ip_frag.memerr);
|
IPFRAG_STATS_INC(ip_frag.memerr);
|
||||||
LWIP_DEBUGF(IP_REASS_DEBUG,("Failed to alloc reassdata struct"));
|
LWIP_DEBUGF(IP_REASS_DEBUG,("Failed to alloc reassdata struct\n"));
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -473,7 +473,7 @@ ip_reass(struct pbuf *p)
|
|||||||
fraghdr = (struct ip_hdr*)p->payload;
|
fraghdr = (struct ip_hdr*)p->payload;
|
||||||
|
|
||||||
if ((IPH_HL(fraghdr) * 4) != IP_HLEN) {
|
if ((IPH_HL(fraghdr) * 4) != IP_HLEN) {
|
||||||
LWIP_DEBUGF(IP_REASS_DEBUG,("ip_reass: IP options currently not supported!"));
|
LWIP_DEBUGF(IP_REASS_DEBUG,("ip_reass: IP options currently not supported!\n"));
|
||||||
IPFRAG_STATS_INC(ip_frag.err);
|
IPFRAG_STATS_INC(ip_frag.err);
|
||||||
goto nullreturn;
|
goto nullreturn;
|
||||||
}
|
}
|
||||||
@ -490,7 +490,7 @@ ip_reass(struct pbuf *p)
|
|||||||
#endif /* IP_REASS_FREE_OLDEST */
|
#endif /* IP_REASS_FREE_OLDEST */
|
||||||
{
|
{
|
||||||
/* No datagram could be freed and still too many pbufs enqueued */
|
/* No datagram could be freed and still too many pbufs enqueued */
|
||||||
LWIP_DEBUGF(IP_REASS_DEBUG,("ip_reass: Overflow condition: pbufct=%d, clen=%d, MAX=%d",
|
LWIP_DEBUGF(IP_REASS_DEBUG,("ip_reass: Overflow condition: pbufct=%d, clen=%d, MAX=%d\n",
|
||||||
ip_reass_pbufcount, clen, IP_REASS_MAX_PBUFS));
|
ip_reass_pbufcount, clen, IP_REASS_MAX_PBUFS));
|
||||||
IPFRAG_STATS_INC(ip_frag.memerr);
|
IPFRAG_STATS_INC(ip_frag.memerr);
|
||||||
/* @todo: send ICMP time exceeded here? */
|
/* @todo: send ICMP time exceeded here? */
|
||||||
@ -586,11 +586,11 @@ ip_reass(struct pbuf *p)
|
|||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
/* the datagram is not (yet?) reassembled completely */
|
/* the datagram is not (yet?) reassembled completely */
|
||||||
LWIP_DEBUGF(IP_REASS_DEBUG,("ip_reass_pbufcount: %d out", ip_reass_pbufcount));
|
LWIP_DEBUGF(IP_REASS_DEBUG,("ip_reass_pbufcount: %d out\n", ip_reass_pbufcount));
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
nullreturn:
|
nullreturn:
|
||||||
LWIP_DEBUGF(IP_REASS_DEBUG,("nullreturn"));
|
LWIP_DEBUGF(IP_REASS_DEBUG,("ip_reass: nullreturn\n"));
|
||||||
IPFRAG_STATS_INC(ip_frag.drop);
|
IPFRAG_STATS_INC(ip_frag.drop);
|
||||||
pbuf_free(p);
|
pbuf_free(p);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user