6loWPAN: Local MAC address is fixed by the configuration. The remote address be with short or extended.

This commit is contained in:
Gregory Nutt
2017-05-04 19:17:38 -06:00
parent 9d9fbcb6dc
commit 14fc1b2d39
11 changed files with 151 additions and 75 deletions
+6
View File
@@ -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
+1 -1
View File
@@ -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