Changeset 11546 in vbox
- Timestamp:
- Aug 21, 2008 4:36:50 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/net.h
r11538 r11546 74 74 RTMAC Node; 75 75 } RTNETADDRIPX; 76 #pragma pack( 0)76 #pragma pack() 77 77 AssertCompileSize(RTNETADDRIPX, 4+6); 78 78 /** Pointer to an IPX address. */ … … 180 180 uint32_t ip_options[1]; 181 181 } RTNETIPV4; 182 #pragma pack( 0)182 #pragma pack() 183 183 AssertCompileSize(RTNETIPV4, 6 * 4); 184 184 /** Pointer to a IPv4 header. */ … … 234 234 uint16_t uh_sum; 235 235 } RTNETUDP; 236 #pragma pack( 0)236 #pragma pack() 237 237 AssertCompileSize(RTNETUDP, 8); 238 238 /** Pointer to an UDP header. */ … … 302 302 303 303 } RTNETBOOTP; 304 #pragma pack( 0)304 #pragma pack() 305 305 AssertCompileSize(RTNETBOOTP, 0xec + 128); 306 306 /** Pointer to a BOOTP / DHCP packet. */ … … 406 406 uint8_t abOptions[57]; 407 407 } RTNETDHCP; 408 #pragma pack( 0)408 #pragma pack() 409 409 /** @todo AssertCompileSize(RTNETDHCP, ); */ 410 410 /** Pointer to a DHCP packet. */ … … 449 449 /* (options follows here and then the data (aka text).) */ 450 450 } RTNETTCP; 451 #pragma pack( 0)451 #pragma pack() 452 452 AssertCompileSize(RTNETTCP, 20); 453 453 /** Pointer to a TCP packet. */ … … 478 478 uint16_t icmp_cksum; 479 479 } RTNETICMPV4HDR; 480 #pragma pack( 0)480 #pragma pack() 481 481 AssertCompileSize(RTNETICMPV4HDR, 4); 482 482 /** Pointer to an ICMP packet header. */ … … 509 509 uint8_t icmp_data[1]; 510 510 } RTNETICMPV4ECHO; 511 #pragma pack( 0)511 #pragma pack() 512 512 AssertCompileSize(RTNETICMPV4ECHO, 9); 513 513 /** Pointer to an ICMP ECHO packet. */ … … 538 538 uint32_t icmp_mtu; 539 539 } RTNETICMPV4TRACEROUTE; 540 #pragma pack( 0)540 #pragma pack() 541 541 AssertCompileSize(RTNETICMPV4TRACEROUTE, 20); 542 542 /** Pointer to an ICMP TRACEROUTE packet. */ … … 582 582 uint16_t ar_oper; 583 583 } RTNETARPHDR; 584 #pragma pack( 0)584 #pragma pack() 585 585 AssertCompileSize(RTNETARPHDR, 8); 586 586 /** Pointer to an ethernet ARP header. */ … … 624 624 RTNETADDRIPV4 ar_tpa; 625 625 } RTNETARPIPV4; 626 #pragma pack( 0)626 #pragma pack() 627 627 AssertCompileSize(RTNETARPIPV4, 8+6+4+6+4); 628 628 /** Pointer to an ethernet IPv4+MAC ARP request packet. */
Note:
See TracChangeset
for help on using the changeset viewer.