56 #ifndef LWIP_HDR_PROT_ND6_H 57 #define LWIP_HDR_PROT_ND6_H 68 #ifdef PACK_STRUCT_USE_INCLUDES 69 # include "arch/bpstruct.h" 73 PACK_STRUCT_FLD_8(u8_t type);
74 PACK_STRUCT_FLD_8(u8_t code);
75 PACK_STRUCT_FIELD(u16_t chksum);
76 PACK_STRUCT_FIELD(u32_t reserved);
77 PACK_STRUCT_FLD_S(ip6_addr_p_t target_address);
81 #ifdef PACK_STRUCT_USE_INCLUDES 82 # include "arch/epstruct.h" 86 #ifdef PACK_STRUCT_USE_INCLUDES 87 # include "arch/bpstruct.h" 100 #ifdef PACK_STRUCT_USE_INCLUDES 101 # include "arch/epstruct.h" 103 #define ND6_FLAG_ROUTER (0x80) 104 #define ND6_FLAG_SOLICITED (0x40) 105 #define ND6_FLAG_OVERRIDE (0x20) 108 #ifdef PACK_STRUCT_USE_INCLUDES 109 # include "arch/bpstruct.h" 118 } PACK_STRUCT_STRUCT;
120 #ifdef PACK_STRUCT_USE_INCLUDES 121 # include "arch/epstruct.h" 125 #define ND6_RA_FLAG_MANAGED_ADDR_CONFIG (0x80) 126 #define ND6_RA_FLAG_OTHER_CONFIG (0x40) 127 #define ND6_RA_FLAG_HOME_AGENT (0x20) 128 #define ND6_RA_PREFERENCE_MASK (0x18) 129 #define ND6_RA_PREFERENCE_HIGH (0x08) 130 #define ND6_RA_PREFERENCE_MEDIUM (0x00) 131 #define ND6_RA_PREFERENCE_LOW (0x18) 132 #define ND6_RA_PREFERENCE_DISABLED (0x10) 133 #ifdef PACK_STRUCT_USE_INCLUDES 134 # include "arch/bpstruct.h" 147 } PACK_STRUCT_STRUCT;
149 #ifdef PACK_STRUCT_USE_INCLUDES 150 # include "arch/epstruct.h" 154 #ifdef PACK_STRUCT_USE_INCLUDES 155 # include "arch/bpstruct.h" 166 } PACK_STRUCT_STRUCT;
168 #ifdef PACK_STRUCT_USE_INCLUDES 169 # include "arch/epstruct.h" 173 #define ND6_OPTION_TYPE_SOURCE_LLADDR (0x01) 174 #define ND6_OPTION_TYPE_TARGET_LLADDR (0x02) 175 #ifdef PACK_STRUCT_USE_INCLUDES 176 # include "arch/bpstruct.h" 183 } PACK_STRUCT_STRUCT;
185 #ifdef PACK_STRUCT_USE_INCLUDES 186 # include "arch/epstruct.h" 190 #define ND6_OPTION_TYPE_PREFIX_INFO (0x03) 191 #define ND6_PREFIX_FLAG_ON_LINK (0x80) 192 #define ND6_PREFIX_FLAG_AUTONOMOUS (0x40) 193 #define ND6_PREFIX_FLAG_ROUTER_ADDRESS (0x20) 194 #define ND6_PREFIX_FLAG_SITE_PREFIX (0x10) 195 #ifdef PACK_STRUCT_USE_INCLUDES 196 # include "arch/bpstruct.h" 209 } PACK_STRUCT_STRUCT;
211 #ifdef PACK_STRUCT_USE_INCLUDES 212 # include "arch/epstruct.h" 216 #define ND6_OPTION_TYPE_REDIR_HDR (0x04) 217 #ifdef PACK_STRUCT_USE_INCLUDES 218 # include "arch/bpstruct.h" 227 } PACK_STRUCT_STRUCT;
229 #ifdef PACK_STRUCT_USE_INCLUDES 230 # include "arch/epstruct.h" 234 #define ND6_OPTION_TYPE_MTU (0x05) 235 #ifdef PACK_STRUCT_USE_INCLUDES 236 # include "arch/bpstruct.h" 244 } PACK_STRUCT_STRUCT;
246 #ifdef PACK_STRUCT_USE_INCLUDES 247 # include "arch/epstruct.h" 251 #define ND6_OPTION_TYPE_ROUTE_INFO (24) 252 #ifdef PACK_STRUCT_USE_INCLUDES 253 # include "arch/bpstruct.h" 263 } PACK_STRUCT_STRUCT;
265 #ifdef PACK_STRUCT_USE_INCLUDES 266 # include "arch/epstruct.h" 270 #if LWIP_ND6_RDNSS_MAX_DNS_SERVERS 271 #define LWIP_RDNSS_OPTION_MAX_SERVERS LWIP_ND6_RDNSS_MAX_DNS_SERVERS 273 #define LWIP_RDNSS_OPTION_MAX_SERVERS 1 275 #define ND6_OPTION_TYPE_RDNSS (25) 276 #ifdef PACK_STRUCT_USE_INCLUDES 277 # include "arch/bpstruct.h" 286 } PACK_STRUCT_STRUCT;
288 #ifdef PACK_STRUCT_USE_INCLUDES 289 # include "arch/epstruct.h"
#define PACK_STRUCT_BEGIN
#define NETIF_MAX_HWADDR_LEN
#define PACK_STRUCT_FLD_S(x)
#define PACK_STRUCT_FLD_8(x)
#define PACK_STRUCT_FIELD(x)
#define LWIP_RDNSS_OPTION_MAX_SERVERS