mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 01:05:54 +08:00
6loWPAN: Local MAC address is fixed by the configuration. The remote address be with short or extended.
This commit is contained in:
@@ -100,6 +100,12 @@ union sixlowpan_anyaddr_u
|
||||
struct sixlowpan_eaddr_s eaddr;
|
||||
};
|
||||
|
||||
struct sixlowpan_tagaddr_s
|
||||
{
|
||||
bool extended;
|
||||
union sixlowpan_anyaddr_u u;
|
||||
};
|
||||
|
||||
/* Represents the configured address size */
|
||||
|
||||
struct sixlowpan_addr_s
|
||||
|
||||
@@ -228,7 +228,7 @@
|
||||
|
||||
#define SIXLOWPAN_IS_IID_16BIT_COMPRESSABLE(a) \
|
||||
((((a)[4]) == 0x0000) && (((a)[5]) == HTONS(0x00ff)) && \
|
||||
(((a)[6]) == 0xfe00))
|
||||
(((a)[6]) == HTONS(0xfe00)))
|
||||
|
||||
/* Check whether the 9-bit group-id of the compressed multicast address is
|
||||
* known. It is true if the 9-bit group is the all nodes or all routers
|
||||
|
||||
Reference in New Issue
Block a user