VirtualBox

Changeset 15683 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Dec 19, 2008 11:47:21 AM (16 years ago)
Author:
vboxsync
Message:

slirp:debug printing ports in host byte order

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/debug.c

    r15407 r15683  
    256256    return RTStrFormat(pfnOutput, pvArgOutput, NULL, 0, "socket %4d:(proto:%u) "
    257257            "state=%04x ip=" IP4_ADDR_PRINTF_FORMAT ":%d name=" IP4_ADDR_PRINTF_FORMAT ":%d",
    258             so->s, so->so_type, so->so_state, IP4_ADDR_PRINTF_DECOMP(ip), so->so_fport,
     258            so->s, so->so_type, so->so_state, IP4_ADDR_PRINTF_DECOMP(ip), ntohs(so->so_fport),
    259259            IP4_ADDR_PRINTF_DECOMP(((struct sockaddr_in *)&addr)->sin_addr.s_addr),
    260             ((struct sockaddr_in *)&addr)->sin_port);
     260            ntohs(((struct sockaddr_in *)&addr)->sin_port));
    261261}
    262262
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette