Changeset 85319 in vbox
- Timestamp:
- Jul 13, 2020 9:18:40 PM (4 years ago)
- Location:
- trunk/src/VBox/Devices/Network/lwip-new/src/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/lwip-new/src/include/ipv4/lwip/icmp.h
r49514 r85319 82 82 * use the data part. 83 83 */ 84 #ifdef VBOX /* Clang 11 takes offence when member addresses are taken (id). Packing not needed, so just dispense with it. */ 85 struct icmp_echo_hdr { 86 u8_t type; 87 u8_t code; 88 u16_t chksum; 89 u16_t id; 90 u16_t seqno; 91 }; 92 AssertCompileSize(struct icmp_echo_hdr, sizeof(uint32_t)*2); 93 #else 84 94 PACK_STRUCT_BEGIN 85 95 struct icmp_echo_hdr { … … 94 104 # include "arch/epstruct.h" 95 105 #endif 106 #endif /* VBOX */ 96 107 97 108 #define ICMPH_TYPE(hdr) ((hdr)->type) -
trunk/src/VBox/Devices/Network/lwip-new/src/include/ipv6/lwip/icmp6.h
r49592 r85319 117 117 118 118 /** This is the ICMP6 header adapted for echo req/resp. */ 119 #ifdef VBOX /* Clang 11 takes offence when member addresses are taken (id). Packing not needed, so just dispense with it. */ 120 struct icmp6_echo_hdr { 121 u8_t type; 122 u8_t code; 123 u16_t chksum; 124 u16_t id; 125 u16_t seqno; 126 }; 127 AssertCompileSize(struct icmp6_echo_hdr, sizeof(uint32_t) * 2); 128 #else 119 129 #ifdef PACK_STRUCT_USE_INCLUDES 120 130 # include "arch/bpstruct.h" … … 132 142 # include "arch/epstruct.h" 133 143 #endif 144 #endif /* VBOX */ 134 145 135 146
Note:
See TracChangeset
for help on using the changeset viewer.