34 #define NDP_RTR_ADV_FLAGS_MASK (0xc0)
35 #define NDP_RTR_ADV_FLAGS_M (0x80)
36 #define NDP_RTR_ADV_FLAGS_O (0x40)
46 #define NDP_RTR_ADV_CUR_HL_UNSPEC (0)
52 #define NDP_RTR_ADV_LTIME_SEC_MAX (9000)
58 #define NDP_NBR_ADV_LTIME_NOT_DR (0)
60 #define NDP_NBR_ADV_REACH_TIME (0)
61 #define NDP_NBR_ADV_RETRANS_TIMER (0)
69 #define NDP_NBR_ADV_FLAGS_MASK (0xe0)
70 #define NDP_NBR_ADV_FLAGS_R (0x80)
71 #define NDP_NBR_ADV_FLAGS_S (0x40)
72 #define NDP_NBR_ADV_FLAGS_O (0x20)
83 #define NDP_OPT_SL2A (1)
84 #define NDP_OPT_TL2A (2)
85 #define NDP_OPT_PI (3)
86 #define NDP_OPT_RH (4)
87 #define NDP_OPT_MTU (5)
88 #define NDP_OPT_RI (24)
89 #define NDP_OPT_RDNSS (25)
90 #define NDP_OPT_AR (33)
91 #define NDP_OPT_6CTX (34)
92 #define NDP_OPT_ABR (35)
99 #define NDP_OPT_PI_FLAGS_MASK (0xc0)
100 #define NDP_OPT_PI_FLAGS_L (0x80)
101 #define NDP_OPT_PI_FLAGS_A (0x40)
108 #define NDP_OPT_RI_FLAGS_MASK (0x18)
109 #define NDP_OPT_RI_FLAGS_PRF_NONE (0x10)
110 #define NDP_OPT_RI_FLAGS_PRF_NEG (0x18)
111 #define NDP_OPT_RI_FLAGS_PRF_ZERO (0x0)
112 #define NDP_OPT_RI_FLAGS_PRF_POS (0x8)
120 #define NDP_OPT_PI_VALID_LTIME_INF (UINT32_MAX)
121 #define NDP_OPT_PI_PREF_LTIME_INF (UINT32_MAX)
129 #define NDP_OPT_PI_LEN (4U)
130 #define NDP_OPT_MTU_LEN (1U)
137 #define NDP_OPT_RDNSS_MIN_LEN (3U)
145 #define NDP_MAX_INIT_RA_INTERVAL (16000U)
146 #define NDP_MAX_INIT_RA_NUMOF (3U)
147 #define NDP_MAX_FIN_RA_NUMOF (3U)
148 #define NDP_MIN_MS_DELAY_BETWEEN_RAS (3000U)
149 #define NDP_MAX_RA_DELAY (500U)
150 #define NDP_MAX_RA_INTERVAL_MS (600000U)
151 #define NDP_MIN_RA_INTERVAL_MS (198000U)
152 #define NDP_RTR_LTIME_SEC (1800U)
160 #define NDP_MAX_RS_MS_DELAY (1000U)
161 #define NDP_RS_MS_INTERVAL (4000U)
162 #define NDP_MAX_RS_NUMOF (3U)
170 #define NDP_MAX_MC_SOL_NUMOF (3U)
171 #define NDP_MAX_UC_SOL_NUMOF (3U)
180 #define NDP_DAD_TRANSMIT_NUMOF (1U)
181 #define NDP_MAX_ANYCAST_MS_DELAY (1000U)
182 #define NDP_MAX_NA_NUMOF (3U)
183 #define NDP_REACH_MS (30000U)
184 #define NDP_RETRANS_TIMER_MS (1000U)
190 #define NDP_MAX_RETRANS_TIMER_MS (60000U)
199 #define NDP_MAX_NS_NUMOF (17U)
200 #define NDP_DELAY_FIRST_PROBE_MS (5000U)
201 #define NDP_MIN_RANDOM_FACTOR (500U)
202 #define NDP_MAX_RANDOM_FACTOR (1500U)
215 #define NDP_HOP_LIMIT (255U)
223 typedef struct __attribute__((packed)) {
236 typedef struct __attribute__((packed)) {
253 typedef struct __attribute__((packed)) {
267 typedef struct __attribute__((packed)) {
282 typedef struct __attribute__((packed)) {
295 typedef struct __attribute__((packed)) {
309 typedef struct __attribute__((packed)) {
326 typedef struct __attribute__((packed)) {
341 typedef struct __attribute__((packed)) {
353 typedef struct __attribute__((packed)) {
367 typedef struct __attribute__((packed)) {
383 typedef struct __attribute__((packed)) {
Functions to work with different byte orders.
Definitions for IPv6 addresses.
Neighbor advertisement message format.
network_uint16_t csum
checksum
ipv6_addr_t tgt
target address
Neighbor solicitation message format.
network_uint16_t csum
checksum
network_uint32_t resv
reserved field
ipv6_addr_t tgt
target address
network_uint16_t resv
reserved field
uint8_t len
length in units of 8 octets
Prefix information option format.
uint8_t prefix_len
prefix length
network_uint32_t pref_ltime
preferred lifetime
network_uint32_t resv
reserved field
network_uint32_t valid_ltime
valid lifetime
uint8_t len
length in units of 8 octets
Recursive DNS server option format with payload.
network_uint16_t resv
reserved field
uint8_t len
length in units of 8 octets
network_uint32_t ltime
lifetime in seconds
Recursive DNS server option format without payload.
network_uint16_t resv
reserved field
uint8_t len
length in units of 8 octets
network_uint32_t ltime
lifetime in seconds
Redirected header option format.
uint8_t len
length in units of 8 octets
Route information option format.
uint8_t prefix_len
prefix length
network_uint32_t route_ltime
route lifetime
uint8_t len
length in units of 8 octets
General NDP option format.
uint8_t len
length in units of 8 octets
ipv6_addr_t tgt
target address
ipv6_addr_t dst
destination address
network_uint32_t resv
reserved field
network_uint16_t csum
checksum
Router advertisement message format.
network_uint32_t reach_time
reachable time
network_uint16_t csum
checksum
uint8_t cur_hl
current hop limit
network_uint32_t retrans_timer
retransmission timer
network_uint16_t ltime
router lifetime
Router solicitation message format.
network_uint16_t csum
checksum
network_uint32_t resv
reserved field
A 16 bit integer in big endian aka network byte order.
A 32 bit integer in big endian aka network byte order.
Data type to represent an IPv6 address.