VirtualBox

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


Ignore:
Timestamp:
Dec 10, 2009 2:33:25 PM (15 years ago)
Author:
vboxsync
Message:

NAT: removed annoying warnings

Location:
trunk/src/VBox/Devices/Network/slirp/libalias
Files:
2 edited

Legend:

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

    r25265 r25301  
    1616{
    1717    struct {
     18#ifndef VBOX
    1819        uint16_t id;
    1920        uint16_t rd:1;
     
    2526        uint16_t Z:3;
    2627        uint16_t ra:1;
     28#else
     29        unsigned id:16;
     30        unsigned rd:1;
     31        unsigned tc:1;
     32        unsigned aa:1;
     33        unsigned opcode:4;
     34        unsigned qr:1;
     35        unsigned rcode:4;
     36        unsigned Z:3;
     37        unsigned ra:1;
     38#endif
    2739        uint16_t qdcount;
    2840        uint16_t ancount;
     
    3244    uint16_t raw[5];
    3345};
     46AssertCompileSize(union dnsmsg_header, 12);
     47
    3448struct dnsmsg_answer
    3549{
  • trunk/src/VBox/Devices/Network/slirp/libalias/alias_nbt.c

    r22452 r25301  
    278278#define OpRefresh   8
    279279typedef struct {
     280#ifndef VBOX
    280281    u_short     nametrid;
    281282    u_short     dir:    1, opcode:4, nmflags:7, rcode:4;
     283#else
     284    unsigned    nametrid:16;
     285    unsigned    dir:    1, opcode:4, nmflags:7, rcode:4;
     286#endif
    282287    u_short     qdcount;
    283288    u_short     ancount;
     
    285290    u_short     arcount;
    286291}       NbtNSHeader;
     292AssertCompileSize(NbtNSHeader, 12);
    287293
    288294#define FMT_ERR     0x1
     
    536542#define SizeOfNsRNB         6
    537543typedef struct {
     544#ifndef VBOX
    538545    u_short     g:  1  , ont:2, resv:13;
     546#else
     547    unsigned    g:  1  , ont:2, resv:13;
     548#endif
    539549    struct in_addr  addr;
    540550}       NBTNsRNB;
     551AssertCompileSize(NBTNsRNB, 8);
    541552
    542553static u_char  *
     
    660671
    661672typedef struct {
     673#ifndef VBOX
    662674    u_short     opcode:4, flags:8, resv:4;
     675#else
     676    u_short     hidden; /* obviously not needed */
     677#endif
    663678}       NBTNsResourceNULL;
     679AssertCompileSize(NBTNsResourceNULL, 2);
    664680
    665681static u_char  *
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