#include <sys/sysctl.h>
#include <netinet/ip.h>
-#if INET6
#include <netinet/ip6.h>
-#endif /* INET6 */
#if !TCPDEBUG
#define TCPSTATES
}
static void
-tcp_log_inp_addresses(struct inpcb *inp, char *lbuf, size_t lbuflen, char *fbuf, size_t fbuflen)
+tcp_log_inp_addresses(struct inpcb *inp, char *lbuf, socklen_t lbuflen, char *fbuf, socklen_t fbuflen)
{
/*
* Ugly but %{private} does not work in the kernel version of os_log()
"rtt: %u.%u ms " \
"rttvar: %u.%u ms " \
"pkt rxmit: %u " \
- "ooo pkts: %u dup bytes in: %u " \
+ "ooo pkts: %u dup bytes in: %u ACKs delayed: %u delayed ACKs sent: %u " \
"so_error: %d " \
"svc/tc: %u"
tp->t_srtt >> TCP_RTT_SHIFT, tp->t_srtt - ((tp->t_srtt >> TCP_RTT_SHIFT) << TCP_RTT_SHIFT), \
tp->t_rttvar >> TCP_RTTVAR_SHIFT, tp->t_rttvar - ((tp->t_rttvar >> TCP_RTTVAR_SHIFT) << TCP_RTTVAR_SHIFT), \
tp->t_stat.rxmitpkts, \
- tp->t_rcvoopack, tp->t_stat.rxduplicatebytes, \
+ tp->t_rcvoopack, tp->t_stat.rxduplicatebytes, tp->t_stat.acks_delayed, tp->t_stat.delayed_acks_sent, \
so->so_error, \
(so->so_flags1 & SOF1_TC_NET_SERV_TYPE) ? so->so_netsvctype : so->so_traffic_class
static bool
tcp_log_pkt_addresses(void *hdr, struct tcphdr *th, bool outgoing,
- char *lbuf, size_t lbuflen, char *fbuf, size_t fbuflen)
+ char *lbuf, socklen_t lbuflen, char *fbuf, socklen_t fbuflen)
{
bool isipv6;
uint8_t thflags;
#undef TCP_LOG_MESSAGE_FMT
#undef TCP_LOG_MESSAGE_ARGS
}
+