Can't set non-/64 mesh-local prefixes with ot-cli #11083
spacekitteh
started this conversation in
General
Replies: 2 comments
-
The mesh-local prefix should be 64 bits long, as it is used to construct RLOC, ALOC, and ML-EID addresses. Section 8.10.1.8 (in the Thread specification), where the "Network Mesh-Local Prefix TLV" is defined, explicitly states "length = 8". The CLI command This is also reflected in the code and definition of #define OT_MESH_LOCAL_PREFIX_SIZE OT_IP6_PREFIX_SIZE ///< Size of the Mesh Local Prefix (bytes)
/**
* Represents a Mesh Local Prefix.
*/
typedef otIp6NetworkPrefix otMeshLocalPrefix; and #define OT_IP6_PREFIX_SIZE 8 ///< Size of an IPv6 prefix (bytes)
#define OT_IP6_PREFIX_BITSIZE (OT_IP6_PREFIX_SIZE * 8) ///< Size of an IPv6 prefix (bits) |
Beta Was this translation helpful? Give feedback.
0 replies
-
RFC 4944 Section 6 states:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug A clear and concise description of what the bug is.
As far as I'm aware, mesh-local prefixes aren't required to be /64s. When trying to set a non-/64 prefix, ot-cli fails to parse it.
E.g.:
Beta Was this translation helpful? Give feedback.
All reactions