debug.c revision e4a6a68e02f198bf3b8b3eafd98d4810685e7766
0N/A * available from http://www.virtualbox.org. This file is free software;
0N/Avoid dump_packet(void *, int);
0N/A#ifdef LOG_ENABLED
/* lprint(" Packets received too short: %d\n", tcpstat.tcps_rcvshort); */
/* lprint(" Segments dropped due to PAWS: %d\n", tcpstat.tcps_pawsdrop); */
size_t n;
n = RTStrPrintf(buff, sizeof(buff), "tcp[%s]", so->so_tcpcb?tcpstates[so->so_tcpcb->t_state]:"NONE");
void *pvUser)
int status = 0;
void *pvUser)
cb += RTStrFormat(pfnOutput, pvArgOutput, NULL, 0, "TCB793[ SND(UNA: %x, NXT: %x, UP: %x, WND: %x, WL1:%x, WL2:%x, ISS:%x), ",
cb += RTStrFormat(pfnOutput, pvArgOutput, NULL, 0, "RCV(WND: %x, NXT: %x, UP: %x, IRS:%x)]", tp->rcv_wnd, tp->rcv_nxt, tp->rcv_up, tp->irs);
return cb;
void *pvUser)
cb += RTStrFormat(pfnOutput, pvArgOutput, NULL, 0, "SEG[ACK: %x, SEQ: %x, LEN: %x, WND: %x, UP: %x]",
return cb;
void *pvUser)
char *pszTcpStateName = (idxTcpState >= 0 && idxTcpState < TCP_NSTATES) ? g_apszTcpStates[idxTcpState] : "TCPS_INVALIDE_STATE";
return cb;
void *pvUser)
#ifdef RT_OS_WINDOWS
bool fDelim = false;
fDelim = true; \
return cb;
return err;
static int g_fFormatRegistered;
if (!g_fFormatRegistered)
return rc;