VirtualBox

Changeset 59156 in vbox for trunk


Ignore:
Timestamp:
Dec 16, 2015 3:35:59 PM (9 years ago)
Author:
vboxsync
Message:

NAT: Properly fix bitfields in struct dnsmsg_header so that "id" is a
normal member, not a bitfield.

File:
1 edited

Legend:

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

    r59144 r59156  
    3030struct dnsmsg_header
    3131{
    32     unsigned id:16;
     32    uint16_t id;
    3333
    3434    /* XXX: endianness */
    35     unsigned rd:1;
    36     unsigned tc:1;
    37     unsigned aa:1;
    38     unsigned opcode:4;
    39     unsigned qr:1;
    40     unsigned rcode:4;
    41     unsigned Z:3;
    42     unsigned ra:1;
     35    uint16_t rd:1;
     36    uint16_t tc:1;
     37    uint16_t aa:1;
     38    uint16_t opcode:4;
     39    uint16_t qr:1;
     40    uint16_t rcode:4;
     41    uint16_t Z:3;
     42    uint16_t ra:1;
    4343
    4444    uint16_t qdcount;
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