Changeset 35351 in vbox for trunk/src/VBox/Devices/Network
- Timestamp:
- Dec 27, 2010 5:04:17 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 69211
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/debug.c
r34305 r35351 303 303 */ 304 304 static DECLCALLBACK(size_t) 305 printTcpcbRfc793(PFNRTSTROUTPUT pfnOutput, void *pvArgOutput, 305 printTcpcbRfc793(PFNRTSTROUTPUT pfnOutput, void *pvArgOutput, 306 306 const char *pszType, void const *pvValue, 307 307 int cchWidth, int cchPrecision, unsigned fFlags, … … 309 309 { 310 310 size_t cb = 0; 311 const struct tcpcb *tp = (const struct tcpcb *)pvValue; 311 const struct tcpcb *tp = (const struct tcpcb *)pvValue; 312 312 AssertReturn(RTStrCmp(pszType, "tcpcb793") == 0 && tp, 0); 313 cb += RTStrFormat(pfnOutput, pvArgOutput, NULL, 0, "TCB793[ SND(UNA: %x, NXT: %x, UP: %x, WND: %x, WL1:%x, WL2:%x, ISS:%x), ", 313 cb += RTStrFormat(pfnOutput, pvArgOutput, NULL, 0, "TCB793[ SND(UNA: %x, NXT: %x, UP: %x, WND: %x, WL1:%x, WL2:%x, ISS:%x), ", 314 314 tp->snd_una, tp->snd_nxt, tp->snd_up, tp->snd_wnd, tp->snd_wl1, tp->snd_wl2, tp->iss); 315 315 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); … … 320 320 */ 321 321 static DECLCALLBACK(size_t) 322 printTcpSegmentRfc793(PFNRTSTROUTPUT pfnOutput, void *pvArgOutput, 322 printTcpSegmentRfc793(PFNRTSTROUTPUT pfnOutput, void *pvArgOutput, 323 323 const char *pszType, void const *pvValue, 324 324 int cchWidth, int cchPrecision, unsigned fFlags, … … 326 326 { 327 327 size_t cb = 0; 328 const struct tcpiphdr *ti = (const struct tcpiphdr *)pvValue; 328 const struct tcpiphdr *ti = (const struct tcpiphdr *)pvValue; 329 329 AssertReturn(RTStrCmp(pszType, "tcpseg793") == 0 && ti, 0); 330 cb += RTStrFormat(pfnOutput, pvArgOutput, NULL, 0, "SEG[ACK: %x, SEQ: %x, LEN: %x, WND: %x, UP: %x]", 330 cb += RTStrFormat(pfnOutput, pvArgOutput, NULL, 0, "SEG[ACK: %x, SEQ: %x, LEN: %x, WND: %x, UP: %x]", 331 331 ti->ti_ack, ti->ti_seq, ti->ti_len, ti->ti_win, ti->ti_urp); 332 332 return cb;
Note:
See TracChangeset
for help on using the changeset viewer.