VirtualBox

Changeset 47580 in vbox for trunk/src/VBox/Devices/Network


Ignore:
Timestamp:
Aug 7, 2013 10:36:00 AM (11 years ago)
Author:
vboxsync
Message:

Devices/E1000: Fixed debug output for IPv4 addresses.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/DevE1000.cpp

    r47499 r47580  
    17041704        else if (ntohs(*(uint16_t*)(cpPacket+12)) == 0x800)
    17051705        {
    1706             Log4(("%s --- IPv4:: %RTnaipv4 => %RTnaipv4\n",
    1707                   pThis->szPrf, cpPacket+14+12, cpPacket+14+16));
     1706            Log4(("%s --- IPv4: %RTnaipv4 => %RTnaipv4\n",
     1707                  pThis->szPrf, *(uint32_t*)(cpPacket+14+12), *(uint32_t*)(cpPacket+14+16)));
    17081708            if (*(cpPacket+14+6) == 0x6)
    17091709                Log4(("%s --- TCP: seq=%x ack=%x\n", pThis->szPrf,
     
    17221722        else
    17231723            E1kLogRel(("E1000: %s packet #%d, %RTmac => %RTmac, %RTnaipv4 => %RTnaipv4, seq=%x ack=%x\n",
    1724                        cszText, ++pThis->u32PktNo, cpPacket+6, cpPacket, cpPacket+14+12, cpPacket+14+16,
     1724                       cszText, ++pThis->u32PktNo, cpPacket+6, cpPacket,
     1725                       *(uint32_t*)(cpPacket+14+12), *(uint32_t*)(cpPacket+14+16),
    17251726                       ntohl(*(uint32_t*)(cpPacket+14+20+4)), ntohl(*(uint32_t*)(cpPacket+14+20+8))));
    17261727        e1kCsLeave(pThis);
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