Changeset 25301 in vbox for trunk/src/VBox/Devices/Network
- Timestamp:
- Dec 10, 2009 2:33:25 PM (15 years ago)
- 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 16 16 { 17 17 struct { 18 #ifndef VBOX 18 19 uint16_t id; 19 20 uint16_t rd:1; … … 25 26 uint16_t Z:3; 26 27 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 27 39 uint16_t qdcount; 28 40 uint16_t ancount; … … 32 44 uint16_t raw[5]; 33 45 }; 46 AssertCompileSize(union dnsmsg_header, 12); 47 34 48 struct dnsmsg_answer 35 49 { -
trunk/src/VBox/Devices/Network/slirp/libalias/alias_nbt.c
r22452 r25301 278 278 #define OpRefresh 8 279 279 typedef struct { 280 #ifndef VBOX 280 281 u_short nametrid; 281 282 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 282 287 u_short qdcount; 283 288 u_short ancount; … … 285 290 u_short arcount; 286 291 } NbtNSHeader; 292 AssertCompileSize(NbtNSHeader, 12); 287 293 288 294 #define FMT_ERR 0x1 … … 536 542 #define SizeOfNsRNB 6 537 543 typedef struct { 544 #ifndef VBOX 538 545 u_short g: 1 , ont:2, resv:13; 546 #else 547 unsigned g: 1 , ont:2, resv:13; 548 #endif 539 549 struct in_addr addr; 540 550 } NBTNsRNB; 551 AssertCompileSize(NBTNsRNB, 8); 541 552 542 553 static u_char * … … 660 671 661 672 typedef struct { 673 #ifndef VBOX 662 674 u_short opcode:4, flags:8, resv:4; 675 #else 676 u_short hidden; /* obviously not needed */ 677 #endif 663 678 } NBTNsResourceNULL; 679 AssertCompileSize(NBTNsResourceNULL, 2); 664 680 665 681 static u_char *
Note:
See TracChangeset
for help on using the changeset viewer.