Message types and helper functions for Neighbor Discovery Optimization for 6LoWPAN (6LoWPAN-ND)
More...
Message types and helper functions for Neighbor Discovery Optimization for 6LoWPAN (6LoWPAN-ND)
- See also
- RFC 6775, section 4
|
file | nd.h |
| Message type and helper function definitions for 6LoWPAN-ND.
|
|
|
- Note
- Options don't use bytes as their length unit, but 8 bytes.
|
#define | SIXLOWPAN_ND_OPT_6CTX_LEN_MIN (2U) |
|
#define | SIXLOWPAN_ND_OPT_6CTX_LEN_MAX (3U) |
|
#define | SIXLOWPAN_ND_OPT_AR_LEN (2U) |
|
#define | SIXLOWPAN_ND_OPT_ABR_LEN (3U) |
|
◆ SIXLOWPAN_ND_REG_TRANSMIT_NUMOF
#define SIXLOWPAN_ND_REG_TRANSMIT_NUMOF (3U) |
◆ sixlowpan_nd_opt_6ctx_get_cid()
Gets a CID (context identifier) from a 6LoWPAN context option.
- Parameters
-
[in] | ctx_opt | A 6LoWPAN context option. |
- Returns
- The CID in the 6LoWPAN context option
ctx_opt
.
Definition at line 218 of file nd.h.
◆ sixlowpan_nd_opt_6ctx_is_comp()
Checks if a 6LoWPAN context in an 6LoWPAN context option is valid for compression.
- Parameters
-
[in] | ctx_opt | A 6LoWPAN context option. |
- Returns
- true, if C bit is set in
ctx_opt
.
-
false, if C bit is unset in
ctx_opt
.
Definition at line 206 of file nd.h.
◆ sixlowpan_nd_opt_6ctx_set_cid()
Sets a CID (context identifier) for a 6LoWPAN context option.
- Parameters
-
[out] | ctx_opt | A 6LoWPAN context option. |
[in] | cid | The CID for the 6LoWPAN context option. |
Definition at line 229 of file nd.h.
◆ sixlowpan_nd_opt_abr_get_version()
Gets the version in correct order from an Authoritative Border Router option.
- Parameters
-
[in] | abr_opt | An Authoritative Border Router option (ABRO). |
- Returns
- The version of the ABRO
Definition at line 243 of file nd.h.
◆ sixlowpan_nd_opt_abr_set_version()
Sets the version of an Authoritative Border Router option.
- Parameters
-
[in] | abr_opt | An Authoritative Border Router option (ABRO). |
[in] | version | Version for the ABRO. |
Definition at line 255 of file nd.h.