Go to the documentation of this file.
37 #define NDP_RTR_ADV_FLAGS_MASK (0xc0)
38 #define NDP_RTR_ADV_FLAGS_M (0x80)
39 #define NDP_RTR_ADV_FLAGS_O (0x40)
49 #define NDP_RTR_ADV_CUR_HL_UNSPEC (0)
55 #define NDP_RTR_ADV_LTIME_SEC_MAX (9000)
61 #define NDP_NBR_ADV_LTIME_NOT_DR (0)
63 #define NDP_NBR_ADV_REACH_TIME (0)
64 #define NDP_NBR_ADV_RETRANS_TIMER (0)
72 #define NDP_NBR_ADV_FLAGS_MASK (0xe0)
73 #define NDP_NBR_ADV_FLAGS_R (0x80)
74 #define NDP_NBR_ADV_FLAGS_S (0x40)
75 #define NDP_NBR_ADV_FLAGS_O (0x20)
86 #define NDP_OPT_SL2A (1)
87 #define NDP_OPT_TL2A (2)
88 #define NDP_OPT_PI (3)
89 #define NDP_OPT_RH (4)
90 #define NDP_OPT_MTU (5)
91 #define NDP_OPT_RDNSS (25)
92 #define NDP_OPT_AR (33)
93 #define NDP_OPT_6CTX (34)
94 #define NDP_OPT_ABR (35)
101 #define NDP_OPT_PI_FLAGS_MASK (0xc0)
102 #define NDP_OPT_PI_FLAGS_L (0x80)
103 #define NDP_OPT_PI_FLAGS_A (0x40)
111 #define NDP_OPT_PI_VALID_LTIME_INF (UINT32_MAX)
112 #define NDP_OPT_PI_PREF_LTIME_INF (UINT32_MAX)
120 #define NDP_OPT_PI_LEN (4U)
121 #define NDP_OPT_MTU_LEN (1U)
128 #define NDP_OPT_RDNSS_MIN_LEN (3U)
136 #define NDP_MAX_INIT_RA_INTERVAL (16000U)
137 #define NDP_MAX_INIT_RA_NUMOF (3U)
138 #define NDP_MAX_FIN_RA_NUMOF (3U)
139 #define NDP_MIN_MS_DELAY_BETWEEN_RAS (3000U)
140 #define NDP_MAX_RA_DELAY (500U)
141 #define NDP_MAX_RA_INTERVAL_MS (600000U)
142 #define NDP_MIN_RA_INTERVAL_MS (198000U)
143 #define NDP_RTR_LTIME_SEC (1800U)
151 #define NDP_MAX_RS_MS_DELAY (1000U)
152 #define NDP_RS_MS_INTERVAL (4000U)
153 #define NDP_MAX_RS_NUMOF (3U)
161 #define NDP_MAX_MC_SOL_NUMOF (3U)
162 #define NDP_MAX_UC_SOL_NUMOF (3U)
171 #define NDP_DAD_TRANSMIT_NUMOF (1U)
172 #define NDP_MAX_ANYCAST_MS_DELAY (1000U)
173 #define NDP_MAX_NA_NUMOF (3U)
174 #define NDP_REACH_MS (30000U)
175 #define NDP_RETRANS_TIMER_MS (1000U)
181 #define NDP_MAX_RETRANS_TIMER_MS (60000U)
190 #define NDP_MAX_NS_NUMOF (17U)
191 #define NDP_DELAY_FIRST_PROBE_MS (5000U)
192 #define NDP_MIN_RANDOM_FACTOR (500U)
193 #define NDP_MAX_RANDOM_FACTOR (1500U)
206 #define NDP_HOP_LIMIT (255U)
214 typedef struct __attribute__((packed)) {
227 typedef struct __attribute__((packed)) {
244 typedef struct __attribute__((packed)) {
258 typedef struct __attribute__((packed)) {
273 typedef struct __attribute__((packed)) {
286 typedef struct __attribute__((packed)) {
300 typedef struct __attribute__((packed)) {
317 typedef struct __attribute__((packed)) {
329 typedef struct __attribute__((packed)) {
343 typedef struct __attribute__((packed)) {
359 typedef struct __attribute__((packed)) {
Prefix information option format.
Redirected header option format.
uint8_t len
length in units of 8 octets
Recursive DNS server option format without payload.
network_uint16_t csum
checksum
A 32 bit integer in big endian aka network byte order.
network_uint32_t pref_ltime
preferred lifetime
uint8_t len
length in units of 8 octets
Functions to work with different byte orders.
A 16 bit integer in big endian aka network byte order.
Recursive DNS server option format with payload.
Data type to represent an IPv6 address.
network_uint32_t ltime
lifetime in seconds
Neighbor advertisement message format.
network_uint16_t csum
checksum
Definitions for IPv6 addresses.
network_uint16_t resv
reserved field
uint8_t cur_hl
current hop limit
network_uint16_t resv
reserved field
Router solicitation message format.
network_uint32_t resv
reserved field
ipv6_addr_t tgt
target address
network_uint16_t csum
checksum
ipv6_addr_t dst
destination address
ipv6_addr_t tgt
target address
uint8_t prefix_len
prefix length
Neighbor solicitation message format.
network_uint32_t retrans_timer
retransmission timer
ipv6_addr_t tgt
target address
network_uint32_t ltime
lifetime in seconds
Router advertisement message format.
network_uint32_t resv
reserved field
network_uint32_t reach_time
reachable time
network_uint16_t ltime
router lifetime
uint8_t len
length in units of 8 octets
network_uint16_t resv
reserved field
uint8_t len
length in units of 8 octets
network_uint32_t resv
reserved field
network_uint32_t valid_ltime
valid lifetime
network_uint16_t csum
checksum
uint8_t len
length in units of 8 octets
General NDP option format.
network_uint16_t csum
checksum
uint8_t len
length in units of 8 octets
network_uint32_t resv
reserved field