1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/sys/net/sixlowpan/sixlowpan.h

22 lines
488 B
C

/* fragmentation defines */
#define FRAG1_HDR_LEN 32 // in bit
#define FRAGN_HDR_LEN 40 // in bit
#define FRAG1_DISPATCH 0xC0 // 11000000
#define FRAGN_DISPATCH 0xE0 // 11100000
/* 48-bit MAC to EUI64 pattern */
#define MAC_TO_EUI64_PTRN 0xFFFE
typedef struct eui64{
uint8_t oui_1;
uint16_t oui_2;
uint16_t pattern;
uint8_t ext_ident_1;
uint16_t ext_ident_2;
} eui64;
typedef struct ipv6_addr{
uint16_t prefix[4];
eui64 interface_id;
} ipv6_addr;