mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-04 05:39:53 +00:00
Fixed packet header debug formatters.
This commit is contained in:
parent
6ee1644db7
commit
6e9c995fc8
@ -540,7 +540,7 @@ ip_debug_print(struct pbuf *p)
|
|||||||
|
|
||||||
DEBUGF(IP_DEBUG, ("IP header:\n"));
|
DEBUGF(IP_DEBUG, ("IP header:\n"));
|
||||||
DEBUGF(IP_DEBUG, ("+-------------------------------+\n"));
|
DEBUGF(IP_DEBUG, ("+-------------------------------+\n"));
|
||||||
DEBUGF(IP_DEBUG, ("|%2d |%2d | %2u | %4u | (v, hl, tos, len)\n",
|
DEBUGF(IP_DEBUG, ("|%2d |%2d | 0x%02x | %5u | (v, hl, tos, len)\n",
|
||||||
IPH_V(iphdr),
|
IPH_V(iphdr),
|
||||||
IPH_HL(iphdr),
|
IPH_HL(iphdr),
|
||||||
IPH_TOS(iphdr),
|
IPH_TOS(iphdr),
|
||||||
@ -553,7 +553,7 @@ ip_debug_print(struct pbuf *p)
|
|||||||
ntohs(IPH_OFFSET(iphdr)) >> 13 & 1,
|
ntohs(IPH_OFFSET(iphdr)) >> 13 & 1,
|
||||||
ntohs(IPH_OFFSET(iphdr)) & IP_OFFMASK));
|
ntohs(IPH_OFFSET(iphdr)) & IP_OFFMASK));
|
||||||
DEBUGF(IP_DEBUG, ("+-------------------------------+\n"));
|
DEBUGF(IP_DEBUG, ("+-------------------------------+\n"));
|
||||||
DEBUGF(IP_DEBUG, ("| %2u | %2u | 0x%04x | (ttl, proto, chksum)\n",
|
DEBUGF(IP_DEBUG, ("| %3u | %3u | 0x%04x | (ttl, proto, chksum)\n",
|
||||||
IPH_TTL(iphdr),
|
IPH_TTL(iphdr),
|
||||||
IPH_PROTO(iphdr),
|
IPH_PROTO(iphdr),
|
||||||
ntohs(IPH_CHKSUM(iphdr))));
|
ntohs(IPH_CHKSUM(iphdr))));
|
||||||
|
Loading…
Reference in New Issue
Block a user