37 #ifndef LWIP_HDR_PROT_ND6_H
38 #define LWIP_HDR_PROT_ND6_H
49 #ifdef PACK_STRUCT_USE_INCLUDES
62 #ifdef PACK_STRUCT_USE_INCLUDES
67 #ifdef PACK_STRUCT_USE_INCLUDES
81 #ifdef PACK_STRUCT_USE_INCLUDES
84 #define ND6_FLAG_ROUTER (0x80)
85 #define ND6_FLAG_SOLICITED (0x40)
86 #define ND6_FLAG_OVERRIDE (0x20)
89 #ifdef PACK_STRUCT_USE_INCLUDES
101 #ifdef PACK_STRUCT_USE_INCLUDES
106 #define ND6_RA_FLAG_MANAGED_ADDR_CONFIG (0x80)
107 #define ND6_RA_FLAG_OTHER_CONFIG (0x40)
108 #define ND6_RA_FLAG_HOME_AGENT (0x20)
109 #define ND6_RA_PREFERENCE_MASK (0x18)
110 #define ND6_RA_PREFERENCE_HIGH (0x08)
111 #define ND6_RA_PREFERENCE_MEDIUM (0x00)
112 #define ND6_RA_PREFERENCE_LOW (0x18)
113 #define ND6_RA_PREFERENCE_DISABLED (0x10)
114 #ifdef PACK_STRUCT_USE_INCLUDES
130 #ifdef PACK_STRUCT_USE_INCLUDES
135 #ifdef PACK_STRUCT_USE_INCLUDES
149 #ifdef PACK_STRUCT_USE_INCLUDES
154 #define ND6_OPTION_TYPE_SOURCE_LLADDR (0x01)
155 #define ND6_OPTION_TYPE_TARGET_LLADDR (0x02)
156 #ifdef PACK_STRUCT_USE_INCLUDES
166 #ifdef PACK_STRUCT_USE_INCLUDES
171 #define ND6_OPTION_TYPE_PREFIX_INFO (0x03)
172 #define ND6_PREFIX_FLAG_ON_LINK (0x80)
173 #define ND6_PREFIX_FLAG_AUTONOMOUS (0x40)
174 #define ND6_PREFIX_FLAG_ROUTER_ADDRESS (0x20)
175 #define ND6_PREFIX_FLAG_SITE_PREFIX (0x10)
176 #ifdef PACK_STRUCT_USE_INCLUDES
192 #ifdef PACK_STRUCT_USE_INCLUDES
197 #define ND6_OPTION_TYPE_REDIR_HDR (0x04)
198 #ifdef PACK_STRUCT_USE_INCLUDES
210 #ifdef PACK_STRUCT_USE_INCLUDES
215 #define ND6_OPTION_TYPE_MTU (0x05)
216 #ifdef PACK_STRUCT_USE_INCLUDES
227 #ifdef PACK_STRUCT_USE_INCLUDES
232 #define ND6_OPTION_TYPE_ROUTE_INFO (24)
233 #ifdef PACK_STRUCT_USE_INCLUDES
246 #ifdef PACK_STRUCT_USE_INCLUDES
251 #define ND6_OPTION_TYPE_RDNSS (25)
252 #ifdef PACK_STRUCT_USE_INCLUDES
264 #ifdef PACK_STRUCT_USE_INCLUDES
268 #define SIZEOF_RDNSS_OPTION_BASE 8
#define PACK_STRUCT_END
Definition: arch.h:316
uint32_t u32_t
Definition: arch.h:129
uint8_t u8_t
Definition: arch.h:125
#define PACK_STRUCT_BEGIN
Definition: arch.h:307
uint16_t u16_t
Definition: arch.h:127
#define NETIF_MAX_HWADDR_LEN
Definition: netif.h:63
typedefPACK_STRUCT_END struct ip6_addr_packed ip6_addr_p_t
Definition: ip6.h:60
PACK_STRUCT_BEGIN struct ns_header PACK_STRUCT_STRUCT
PACK_STRUCT_FLD_8(u8_t addr[NETIF_MAX_HWADDR_LEN])
PACK_STRUCT_FLD_8(u8_t length)
PACK_STRUCT_FLD_8(u8_t type)
PACK_STRUCT_FIELD(u32_t mtu)
PACK_STRUCT_FLD_8(u8_t type)
PACK_STRUCT_FLD_8(u8_t length)
PACK_STRUCT_FIELD(u16_t reserved)
PACK_STRUCT_FLD_8(u8_t type)
PACK_STRUCT_FLD_S(ip6_addr_p_t prefix)
PACK_STRUCT_FLD_8(u8_t length)
PACK_STRUCT_FLD_8(u8_t site_prefix_length)
PACK_STRUCT_FLD_8(u8_t prefix_length)
PACK_STRUCT_FIELD(u32_t valid_lifetime)
PACK_STRUCT_FLD_8(u8_t reserved2[3])
PACK_STRUCT_FIELD(u32_t preferred_lifetime)
PACK_STRUCT_FLD_8(u8_t flags)
PACK_STRUCT_FLD_8(u8_t type)
PACK_STRUCT_FLD_S(ip6_addr_p_t rdnss_address[1])
PACK_STRUCT_FIELD(u16_t reserved)
PACK_STRUCT_FLD_8(u8_t length)
PACK_STRUCT_FIELD(u32_t lifetime)
PACK_STRUCT_FLD_S(ip6_addr_p_t prefix)
PACK_STRUCT_FIELD(u32_t route_lifetime)
PACK_STRUCT_FLD_8(u8_t type)
PACK_STRUCT_FLD_8(u8_t prefix_length)
PACK_STRUCT_FLD_8(u8_t preference)
PACK_STRUCT_FLD_8(u8_t length)