Changeset 45716 in vbox for trunk/include/iprt/net.h
- Timestamp:
- Apr 24, 2013 6:47:18 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/net.h
r45120 r45716 335 335 /** The minimum IPv6 header length (in bytes). 336 336 * 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) 338 339 339 340 RTDECL(uint32_t) RTNetIPv6PseudoChecksum(PCRTNETIPV6 pIpHdr); … … 749 750 /** @todo add ICMPv6 when needed. */ 750 751 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) 762 typedef struct RTNETNDP_SLLA_OPT 763 { 764 uint8_t type; 765 uint8_t len; 766 RTMAC slla; 767 } RTNETNDP_SLLA_OPT; 768 #pragma pack() 769 770 AssertCompileSize(RTNETNDP_SLLA_OPT, 1+1+6); 771 772 typedef RTNETNDP_SLLA_OPT *PRTNETNDP_SLLA_OPT; 773 typedef RTNETNDP_SLLA_OPT const *PCRTNETNDP_SLLA_OPT; 774 775 /** ICMPv6 ND Neighbor Sollicitation */ 776 #pragma pack(1) 777 typedef 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() 791 AssertCompileSize(RTNETNDP, 1+1+2+4+16); 792 /** Pointer to a NDP ND packet. */ 793 typedef RTNETNDP *PRTNETNDP; 794 /** Pointer to a const NDP NS packet. */ 795 typedef RTNETNDP const *PCRTNETNDP; 796 751 797 752 798 /** … … 817 863 818 864 819 /** @todo RTNETNDP (IPv6)*/820 821 822 865 /** @} */ 823 866
Note:
See TracChangeset
for help on using the changeset viewer.