VirtualBox

Changeset 45716 in vbox for trunk/include/iprt/net.h


Ignore:
Timestamp:
Apr 24, 2013 6:47:18 PM (12 years ago)
Author:
vboxsync
Message:

IntNet: Integration of wireless IPv6 support patch + unicast ND solicitation fix + 32-bit compile fix + formatting (#3060)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/net.h

    r45120 r45716  
    335335/** The minimum IPv6 header length (in bytes).
    336336 * Up to and including RTNETIPV6::ip6_dst. */
    337 #define RTNETIPV6_MIN_LEN   (40)
     337#define RTNETIPV6_MIN_LEN                           (40)
     338#define RTNETIPV6_ICMPV6_ND_WITH_LLA_OPT_MIN_LEN    (32)
    338339
    339340RTDECL(uint32_t) RTNetIPv6PseudoChecksum(PCRTNETIPV6 pIpHdr);
     
    749750/** @todo add ICMPv6 when needed. */
    750751
     752#define RTNETIPV6_PROT_ICMPV6       (58)
     753#define RTNETIPV6_ICMPV6_CODE_0     (0)
     754#define RTNETIPV6_ICMP_NS_TYPE      (135)
     755#define RTNETIPV6_ICMP_NA_TYPE      (136)
     756#define RTNETIPV6_ICMP_ND_SLLA_OPT  (1)
     757#define RTNETIPV6_ICMP_ND_TLLA_OPT  (2)
     758#define RTNETIPV6_ICMP_ND_LLA_LEN   (1)
     759
     760/** ICMPv6 ND Source Link Layer Address option */
     761#pragma pack(1)
     762typedef struct RTNETNDP_SLLA_OPT
     763{
     764    uint8_t type;
     765    uint8_t len;
     766    RTMAC slla;
     767} RTNETNDP_SLLA_OPT;
     768#pragma pack()
     769
     770AssertCompileSize(RTNETNDP_SLLA_OPT, 1+1+6);
     771
     772typedef RTNETNDP_SLLA_OPT *PRTNETNDP_SLLA_OPT;
     773typedef RTNETNDP_SLLA_OPT const *PCRTNETNDP_SLLA_OPT;
     774
     775/** ICMPv6 ND Neighbor Sollicitation */
     776#pragma pack(1)
     777typedef struct RTNETNDP
     778{
     779    /** ICMPv6 type. */
     780    uint8_t icmp6_type;
     781    /** ICMPv6 code. */
     782    uint8_t icmp6_code;
     783    /** ICMPv6 checksum */
     784    uint16_t icmp6_cksum;
     785    /** reserved */
     786    uint32_t reserved;
     787    /** target address */
     788    RTNETADDRIPV6 target_address;
     789} RTNETNDP;
     790#pragma pack()
     791AssertCompileSize(RTNETNDP, 1+1+2+4+16);
     792/** Pointer to a NDP ND packet. */
     793typedef RTNETNDP *PRTNETNDP;
     794/** Pointer to a const NDP NS packet. */
     795typedef RTNETNDP const *PCRTNETNDP;
     796
    751797
    752798/**
     
    817863
    818864
    819 /** @todo RTNETNDP (IPv6)*/
    820 
    821 
    822865/** @} */
    823866
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