540 |
|
|
541 |
DEBUGF(IP_DEBUG, ("IP header:\n")); |
DEBUGF(IP_DEBUG, ("IP header:\n")); |
542 |
DEBUGF(IP_DEBUG, ("+-------------------------------+\n")); |
DEBUGF(IP_DEBUG, ("+-------------------------------+\n")); |
543 |
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", |
544 |
IPH_V(iphdr), |
IPH_V(iphdr), |
545 |
IPH_HL(iphdr), |
IPH_HL(iphdr), |
546 |
IPH_TOS(iphdr), |
IPH_TOS(iphdr), |
553 |
ntohs(IPH_OFFSET(iphdr)) >> 13 & 1, |
ntohs(IPH_OFFSET(iphdr)) >> 13 & 1, |
554 |
ntohs(IPH_OFFSET(iphdr)) & IP_OFFMASK)); |
ntohs(IPH_OFFSET(iphdr)) & IP_OFFMASK)); |
555 |
DEBUGF(IP_DEBUG, ("+-------------------------------+\n")); |
DEBUGF(IP_DEBUG, ("+-------------------------------+\n")); |
556 |
DEBUGF(IP_DEBUG, ("| %2u | %2u | 0x%04x | (ttl, proto, chksum)\n", |
DEBUGF(IP_DEBUG, ("| %3u | %3u | 0x%04x | (ttl, proto, chksum)\n", |
557 |
IPH_TTL(iphdr), |
IPH_TTL(iphdr), |
558 |
IPH_PROTO(iphdr), |
IPH_PROTO(iphdr), |
559 |
ntohs(IPH_CHKSUM(iphdr)))); |
ntohs(IPH_CHKSUM(iphdr)))); |