VirtualBox

Changeset 85319 in vbox


Ignore:
Timestamp:
Jul 13, 2020 9:18:40 PM (4 years ago)
Author:
vboxsync
Message:

lwip/icmp*.h: Clang 11 workaround. bugref:9790

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  
    8282 *  use the data part.
    8383 */
     84#ifdef VBOX /* Clang 11 takes offence when member addresses are taken (id).  Packing not needed, so just dispense with it. */
     85struct icmp_echo_hdr {
     86  u8_t type;
     87  u8_t code;
     88  u16_t chksum;
     89  u16_t id;
     90  u16_t seqno;
     91};
     92AssertCompileSize(struct icmp_echo_hdr, sizeof(uint32_t)*2);
     93#else
    8494PACK_STRUCT_BEGIN
    8595struct icmp_echo_hdr {
     
    94104#  include "arch/epstruct.h"
    95105#endif
     106#endif /* VBOX */
    96107
    97108#define ICMPH_TYPE(hdr) ((hdr)->type)
  • trunk/src/VBox/Devices/Network/lwip-new/src/include/ipv6/lwip/icmp6.h

    r49592 r85319  
    117117
    118118/** 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. */
     120struct icmp6_echo_hdr {
     121  u8_t type;
     122  u8_t code;
     123  u16_t chksum;
     124  u16_t id;
     125  u16_t seqno;
     126};
     127AssertCompileSize(struct icmp6_echo_hdr, sizeof(uint32_t) * 2);
     128#else
    119129#ifdef PACK_STRUCT_USE_INCLUDES
    120130#  include "arch/bpstruct.h"
     
    132142#  include "arch/epstruct.h"
    133143#endif
     144#endif /* VBOX */
    134145
    135146
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