|
|
|
|
@ -132,11 +132,11 @@ struct nd6_q_entry {
|
|
|
|
|
#endif |
|
|
|
|
PACK_STRUCT_BEGIN |
|
|
|
|
struct ns_header { |
|
|
|
|
PACK_STRUCT_FIELD(u8_t type); |
|
|
|
|
PACK_STRUCT_FIELD(u8_t code); |
|
|
|
|
PACK_STRUCT_FLD_8(u8_t type); |
|
|
|
|
PACK_STRUCT_FLD_8(u8_t code); |
|
|
|
|
PACK_STRUCT_FIELD(u16_t chksum); |
|
|
|
|
PACK_STRUCT_FIELD(u32_t reserved); |
|
|
|
|
PACK_STRUCT_FIELD(ip6_addr_p_t target_address); |
|
|
|
|
PACK_STRUCT_FLD_S(ip6_addr_p_t target_address); |
|
|
|
|
/* Options follow. */ |
|
|
|
|
} PACK_STRUCT_STRUCT; |
|
|
|
|
PACK_STRUCT_END |
|
|
|
|
@ -150,12 +150,12 @@ PACK_STRUCT_END
|
|
|
|
|
#endif |
|
|
|
|
PACK_STRUCT_BEGIN |
|
|
|
|
struct na_header { |
|
|
|
|
PACK_STRUCT_FIELD(u8_t type); |
|
|
|
|
PACK_STRUCT_FIELD(u8_t code); |
|
|
|
|
PACK_STRUCT_FLD_8(u8_t type); |
|
|
|
|
PACK_STRUCT_FLD_8(u8_t code); |
|
|
|
|
PACK_STRUCT_FIELD(u16_t chksum); |
|
|
|
|
PACK_STRUCT_FIELD(u8_t flags); |
|
|
|
|
PACK_STRUCT_FIELD(u8_t reserved[3]); |
|
|
|
|
PACK_STRUCT_FIELD(ip6_addr_p_t target_address); |
|
|
|
|
PACK_STRUCT_FLD_8(u8_t flags); |
|
|
|
|
PACK_STRUCT_FLD_8(u8_t reserved[3]); |
|
|
|
|
PACK_STRUCT_FLD_S(ip6_addr_p_t target_address); |
|
|
|
|
/* Options follow. */ |
|
|
|
|
} PACK_STRUCT_STRUCT; |
|
|
|
|
PACK_STRUCT_END |
|
|
|
|
@ -172,8 +172,8 @@ PACK_STRUCT_END
|
|
|
|
|
#endif |
|
|
|
|
PACK_STRUCT_BEGIN |
|
|
|
|
struct rs_header { |
|
|
|
|
PACK_STRUCT_FIELD(u8_t type); |
|
|
|
|
PACK_STRUCT_FIELD(u8_t code); |
|
|
|
|
PACK_STRUCT_FLD_8(u8_t type); |
|
|
|
|
PACK_STRUCT_FLD_8(u8_t code); |
|
|
|
|
PACK_STRUCT_FIELD(u16_t chksum); |
|
|
|
|
PACK_STRUCT_FIELD(u32_t reserved); |
|
|
|
|
/* Options follow. */ |
|
|
|
|
@ -197,11 +197,11 @@ PACK_STRUCT_END
|
|
|
|
|
#endif |
|
|
|
|
PACK_STRUCT_BEGIN |
|
|
|
|
struct ra_header { |
|
|
|
|
PACK_STRUCT_FIELD(u8_t type); |
|
|
|
|
PACK_STRUCT_FIELD(u8_t code); |
|
|
|
|
PACK_STRUCT_FLD_8(u8_t type); |
|
|
|
|
PACK_STRUCT_FLD_8(u8_t code); |
|
|
|
|
PACK_STRUCT_FIELD(u16_t chksum); |
|
|
|
|
PACK_STRUCT_FIELD(u8_t current_hop_limit); |
|
|
|
|
PACK_STRUCT_FIELD(u8_t flags); |
|
|
|
|
PACK_STRUCT_FLD_8(u8_t current_hop_limit); |
|
|
|
|
PACK_STRUCT_FLD_8(u8_t flags); |
|
|
|
|
PACK_STRUCT_FIELD(u16_t router_lifetime); |
|
|
|
|
PACK_STRUCT_FIELD(u32_t reachable_time); |
|
|
|
|
PACK_STRUCT_FIELD(u32_t retrans_timer); |
|
|
|
|
@ -218,12 +218,12 @@ PACK_STRUCT_END
|
|
|
|
|
#endif |
|
|
|
|
PACK_STRUCT_BEGIN |
|
|
|
|
struct redirect_header { |
|
|
|
|
PACK_STRUCT_FIELD(u8_t type); |
|
|
|
|
PACK_STRUCT_FIELD(u8_t code); |
|
|
|
|
PACK_STRUCT_FLD_8(u8_t type); |
|
|
|
|
PACK_STRUCT_FLD_8(u8_t code); |
|
|
|
|
PACK_STRUCT_FIELD(u16_t chksum); |
|
|
|
|
PACK_STRUCT_FIELD(u32_t reserved); |
|
|
|
|
PACK_STRUCT_FIELD(ip6_addr_p_t target_address); |
|
|
|
|
PACK_STRUCT_FIELD(ip6_addr_p_t destination_address); |
|
|
|
|
PACK_STRUCT_FLD_S(ip6_addr_p_t target_address); |
|
|
|
|
PACK_STRUCT_FLD_S(ip6_addr_p_t destination_address); |
|
|
|
|
/* Options follow. */ |
|
|
|
|
} PACK_STRUCT_STRUCT; |
|
|
|
|
PACK_STRUCT_END |
|
|
|
|
@ -239,9 +239,9 @@ PACK_STRUCT_END
|
|
|
|
|
#endif |
|
|
|
|
PACK_STRUCT_BEGIN |
|
|
|
|
struct lladdr_option { |
|
|
|
|
PACK_STRUCT_FIELD(u8_t type); |
|
|
|
|
PACK_STRUCT_FIELD(u8_t length); |
|
|
|
|
PACK_STRUCT_FIELD(u8_t addr[NETIF_MAX_HWADDR_LEN]); |
|
|
|
|
PACK_STRUCT_FLD_8(u8_t type); |
|
|
|
|
PACK_STRUCT_FLD_8(u8_t length); |
|
|
|
|
PACK_STRUCT_FLD_8(u8_t addr[NETIF_MAX_HWADDR_LEN]); |
|
|
|
|
} PACK_STRUCT_STRUCT; |
|
|
|
|
PACK_STRUCT_END |
|
|
|
|
#ifdef PACK_STRUCT_USE_INCLUDES |
|
|
|
|
@ -259,15 +259,15 @@ PACK_STRUCT_END
|
|
|
|
|
#endif |
|
|
|
|
PACK_STRUCT_BEGIN |
|
|
|
|
struct prefix_option { |
|
|
|
|
PACK_STRUCT_FIELD(u8_t type); |
|
|
|
|
PACK_STRUCT_FIELD(u8_t length); |
|
|
|
|
PACK_STRUCT_FIELD(u8_t prefix_length); |
|
|
|
|
PACK_STRUCT_FIELD(u8_t flags); |
|
|
|
|
PACK_STRUCT_FLD_8(u8_t type); |
|
|
|
|
PACK_STRUCT_FLD_8(u8_t length); |
|
|
|
|
PACK_STRUCT_FLD_8(u8_t prefix_length); |
|
|
|
|
PACK_STRUCT_FLD_8(u8_t flags); |
|
|
|
|
PACK_STRUCT_FIELD(u32_t valid_lifetime); |
|
|
|
|
PACK_STRUCT_FIELD(u32_t preferred_lifetime); |
|
|
|
|
PACK_STRUCT_FIELD(u8_t reserved2[3]); |
|
|
|
|
PACK_STRUCT_FIELD(u8_t site_prefix_length); |
|
|
|
|
PACK_STRUCT_FIELD(ip6_addr_p_t prefix); |
|
|
|
|
PACK_STRUCT_FLD_8(u8_t reserved2[3]); |
|
|
|
|
PACK_STRUCT_FLD_8(u8_t site_prefix_length); |
|
|
|
|
PACK_STRUCT_FLD_S(ip6_addr_p_t prefix); |
|
|
|
|
} PACK_STRUCT_STRUCT; |
|
|
|
|
PACK_STRUCT_END |
|
|
|
|
#ifdef PACK_STRUCT_USE_INCLUDES |
|
|
|
|
@ -281,11 +281,11 @@ PACK_STRUCT_END
|
|
|
|
|
#endif |
|
|
|
|
PACK_STRUCT_BEGIN |
|
|
|
|
struct redirected_header_option { |
|
|
|
|
PACK_STRUCT_FIELD(u8_t type); |
|
|
|
|
PACK_STRUCT_FIELD(u8_t length); |
|
|
|
|
PACK_STRUCT_FIELD(u8_t reserved[6]); |
|
|
|
|
PACK_STRUCT_FLD_8(u8_t type); |
|
|
|
|
PACK_STRUCT_FLD_8(u8_t length); |
|
|
|
|
PACK_STRUCT_FLD_8(u8_t reserved[6]); |
|
|
|
|
/* Portion of redirected packet follows. */ |
|
|
|
|
/* PACK_STRUCT_FIELD(u8_t redirected[8]); */ |
|
|
|
|
/* PACK_STRUCT_FLD_8(u8_t redirected[8]); */ |
|
|
|
|
} PACK_STRUCT_STRUCT; |
|
|
|
|
PACK_STRUCT_END |
|
|
|
|
#ifdef PACK_STRUCT_USE_INCLUDES |
|
|
|
|
@ -299,8 +299,8 @@ PACK_STRUCT_END
|
|
|
|
|
#endif |
|
|
|
|
PACK_STRUCT_BEGIN |
|
|
|
|
struct mtu_option { |
|
|
|
|
PACK_STRUCT_FIELD(u8_t type); |
|
|
|
|
PACK_STRUCT_FIELD(u8_t length); |
|
|
|
|
PACK_STRUCT_FLD_8(u8_t type); |
|
|
|
|
PACK_STRUCT_FLD_8(u8_t length); |
|
|
|
|
PACK_STRUCT_FIELD(u16_t reserved); |
|
|
|
|
PACK_STRUCT_FIELD(u32_t mtu); |
|
|
|
|
} PACK_STRUCT_STRUCT; |
|
|
|
|
@ -316,12 +316,12 @@ PACK_STRUCT_END
|
|
|
|
|
#endif |
|
|
|
|
PACK_STRUCT_BEGIN |
|
|
|
|
struct route_option { |
|
|
|
|
PACK_STRUCT_FIELD(u8_t type); |
|
|
|
|
PACK_STRUCT_FIELD(u8_t length); |
|
|
|
|
PACK_STRUCT_FIELD(u8_t prefix_length); |
|
|
|
|
PACK_STRUCT_FIELD(u8_t preference); |
|
|
|
|
PACK_STRUCT_FLD_8(u8_t type); |
|
|
|
|
PACK_STRUCT_FLD_8(u8_t length); |
|
|
|
|
PACK_STRUCT_FLD_8(u8_t prefix_length); |
|
|
|
|
PACK_STRUCT_FLD_8(u8_t preference); |
|
|
|
|
PACK_STRUCT_FIELD(u32_t route_lifetime); |
|
|
|
|
PACK_STRUCT_FIELD(ip6_addr_p_t prefix); |
|
|
|
|
PACK_STRUCT_FLD_S(ip6_addr_p_t prefix); |
|
|
|
|
} PACK_STRUCT_STRUCT; |
|
|
|
|
PACK_STRUCT_END |
|
|
|
|
#ifdef PACK_STRUCT_USE_INCLUDES |
|
|
|
|
|