Changeset View
Changeset View
Standalone View
Standalone View
head/sys/netinet/icmp6.h
Show First 20 Lines • Show All 291 Lines • ▼ Show 20 Lines | struct nd_opt_hdr { /* Neighbor discovery option header */ | ||||
/* followed by option specific data*/ | /* followed by option specific data*/ | ||||
} __packed; | } __packed; | ||||
#define ND_OPT_SOURCE_LINKADDR 1 | #define ND_OPT_SOURCE_LINKADDR 1 | ||||
#define ND_OPT_TARGET_LINKADDR 2 | #define ND_OPT_TARGET_LINKADDR 2 | ||||
#define ND_OPT_PREFIX_INFORMATION 3 | #define ND_OPT_PREFIX_INFORMATION 3 | ||||
#define ND_OPT_REDIRECTED_HEADER 4 | #define ND_OPT_REDIRECTED_HEADER 4 | ||||
#define ND_OPT_MTU 5 | #define ND_OPT_MTU 5 | ||||
#define ND_OPT_NONCE 14 /* RFC 3971 */ | |||||
#define ND_OPT_ROUTE_INFO 24 /* RFC 4191 */ | #define ND_OPT_ROUTE_INFO 24 /* RFC 4191 */ | ||||
#define ND_OPT_RDNSS 25 /* RFC 6106 */ | #define ND_OPT_RDNSS 25 /* RFC 6106 */ | ||||
#define ND_OPT_DNSSL 31 /* RFC 6106 */ | #define ND_OPT_DNSSL 31 /* RFC 6106 */ | ||||
#define ND_OPT_MAX 31 | |||||
struct nd_opt_prefix_info { /* prefix information */ | struct nd_opt_prefix_info { /* prefix information */ | ||||
u_int8_t nd_opt_pi_type; | u_int8_t nd_opt_pi_type; | ||||
u_int8_t nd_opt_pi_len; | u_int8_t nd_opt_pi_len; | ||||
u_int8_t nd_opt_pi_prefix_len; | u_int8_t nd_opt_pi_prefix_len; | ||||
u_int8_t nd_opt_pi_flags_reserved; | u_int8_t nd_opt_pi_flags_reserved; | ||||
u_int32_t nd_opt_pi_valid_time; | u_int32_t nd_opt_pi_valid_time; | ||||
u_int32_t nd_opt_pi_preferred_time; | u_int32_t nd_opt_pi_preferred_time; | ||||
Show All 12 Lines | struct nd_opt_rd_hdr { /* redirected header */ | ||||
/* followed by IP header and data */ | /* followed by IP header and data */ | ||||
} __packed; | } __packed; | ||||
struct nd_opt_mtu { /* MTU option */ | struct nd_opt_mtu { /* MTU option */ | ||||
u_int8_t nd_opt_mtu_type; | u_int8_t nd_opt_mtu_type; | ||||
u_int8_t nd_opt_mtu_len; | u_int8_t nd_opt_mtu_len; | ||||
u_int16_t nd_opt_mtu_reserved; | u_int16_t nd_opt_mtu_reserved; | ||||
u_int32_t nd_opt_mtu_mtu; | u_int32_t nd_opt_mtu_mtu; | ||||
} __packed; | |||||
#define ND_OPT_NONCE_LEN ((1 * 8) - 2) | |||||
#if ((ND_OPT_NONCE_LEN + 2) % 8) != 0 | |||||
#error "(ND_OPT_NONCE_LEN + 2) must be a multiple of 8." | |||||
#endif | |||||
struct nd_opt_nonce { /* nonce option */ | |||||
u_int8_t nd_opt_nonce_type; | |||||
u_int8_t nd_opt_nonce_len; | |||||
u_int8_t nd_opt_nonce[ND_OPT_NONCE_LEN]; | |||||
} __packed; | } __packed; | ||||
struct nd_opt_route_info { /* route info */ | struct nd_opt_route_info { /* route info */ | ||||
u_int8_t nd_opt_rti_type; | u_int8_t nd_opt_rti_type; | ||||
u_int8_t nd_opt_rti_len; | u_int8_t nd_opt_rti_len; | ||||
u_int8_t nd_opt_rti_prefixlen; | u_int8_t nd_opt_rti_prefixlen; | ||||
u_int8_t nd_opt_rti_flags; | u_int8_t nd_opt_rti_flags; | ||||
u_int32_t nd_opt_rti_lifetime; | u_int32_t nd_opt_rti_lifetime; | ||||
▲ Show 20 Lines • Show All 427 Lines • Show Last 20 Lines |