diff options
Diffstat (limited to 'contrib/ipfilter/printstate.c')
-rw-r--r-- | contrib/ipfilter/printstate.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/contrib/ipfilter/printstate.c b/contrib/ipfilter/printstate.c index 7362a5b..624493b 100644 --- a/contrib/ipfilter/printstate.c +++ b/contrib/ipfilter/printstate.c @@ -47,22 +47,26 @@ int opts; #else PRINTF("\tpkts %ld bytes %ld", ips.is_pkts, ips.is_bytes); #endif - if (ips.is_p == IPPROTO_TCP) + if (ips.is_p == IPPROTO_TCP) { #if defined(NetBSD) && (NetBSD >= 199905) && (NetBSD < 1991011) || \ (__FreeBSD_version >= 220000) || defined(__OpenBSD__) - PRINTF("\t%hu -> %hu %x:%x %u<<%d:%u<<%d", + PRINTF("\t%hu -> %hu %x:%x (max %x:%x)\n", ntohs(ips.is_sport), ntohs(ips.is_dport), ips.is_send, ips.is_dend, + ips.is_maxsend, ips.is_maxdend); + PRINTF("\t%u<<%d:%u<<%d", ips.is_maxswin>>ips.is_swscale, ips.is_swscale, ips.is_maxdwin>>ips.is_dwscale, ips.is_dwscale); #else - PRINTF("\t%hu -> %hu %x:%x %u<<%d:%u<<%d", + PRINTF("\t%hu -> %hu %x:%x (max %x:%x)\n", ntohs(ips.is_sport), ntohs(ips.is_dport), ips.is_send, ips.is_dend, + ips.is_maxsend, ips.is_maxdend); + PRINTF("\t%u<<%d:%u<<%d", ips.is_maxswin>>ips.is_swscale, ips.is_swscale, ips.is_maxdwin>>ips.is_dwscale, ips.is_dwscale); #endif - else if (ips.is_p == IPPROTO_UDP) + } else if (ips.is_p == IPPROTO_UDP) PRINTF(" %hu -> %hu", ntohs(ips.is_sport), ntohs(ips.is_dport)); else if (ips.is_p == IPPROTO_ICMP |