Go to the source code of this file.
#define is_addr_link_local |
( |
|
a | ) |
(((a)->s6_addr16[0]) == 0x80FE) |
#define is_addr_mac_addr_based |
( |
|
a, |
|
|
|
m |
|
) |
| |
#define is_addr_mcast |
( |
|
a | ) |
(((a)->s6_addr[0]) == 0xFF) |
#define is_addr_unspecified |
( |
|
a | ) |
|
Value:
(((
a)->s6_addr32[1]) == 0) && \
(((
a)->s6_addr32[3]) == 0))
Definition at line 76 of file 6lowpan.h.
#define LOWPAN_DISPATCH_FRAG1 0xc0 /* 11000xxx */ |
#define LOWPAN_DISPATCH_FRAGN 0xe0 /* 11100xxx */ |
#define LOWPAN_DISPATCH_HC1 0x42 /* 01000010 = 66 */ |
#define LOWPAN_DISPATCH_IPHC 0x60 /* 011xxxxx = ... */ |
#define LOWPAN_DISPATCH_IPV6 0x41 /* 01000001 = 65 */ |
#define LOWPAN_DISPATCH_MASK 0xf8 /* 11111000 */ |
#define LOWPAN_FRAG1_HEAD_SIZE 0x4 |
#define LOWPAN_FRAG_SIZE 88 |
#define LOWPAN_FRAGN_HEAD_SIZE 0x5 |
#define LOWPAN_IPHC_CID 0x80 |
#define LOWPAN_IPHC_DAC 0x04 |
#define LOWPAN_IPHC_DAM_00 0x00 |
#define LOWPAN_IPHC_DAM_01 0x01 |
#define LOWPAN_IPHC_DAM_10 0x02 |
#define LOWPAN_IPHC_DAM_11 0x03 |
#define LOWPAN_IPHC_DAM_BIT 0 |
#define LOWPAN_IPHC_FL_C 0x10 |
#define LOWPAN_IPHC_M 0x08 |
#define LOWPAN_IPHC_NH_C 0x04 |
#define LOWPAN_IPHC_SAC 0x40 |
#define LOWPAN_IPHC_SAM 0x30 |
#define LOWPAN_IPHC_SAM_00 0x00 |
#define LOWPAN_IPHC_SAM_01 0x10 |
#define LOWPAN_IPHC_SAM_10 0x20 |
#define LOWPAN_IPHC_SAM_BIT 4 |
#define LOWPAN_IPHC_TC_C 0x08 |
#define LOWPAN_IPHC_TF 0x18 |
#define LOWPAN_IPHC_TTL_1 0x01 |
#define LOWPAN_IPHC_TTL_255 0x03 |
#define LOWPAN_IPHC_TTL_64 0x02 |
#define LOWPAN_IPHC_TTL_I 0x00 |
#define lowpan_is_addr_broadcast |
( |
|
a | ) |
|
#define lowpan_is_iid_16_bit_compressable |
( |
|
a | ) |
|
Value:
(((
a)->s6_addr16[5]) == 0) && \
((((
a)->s6_addr[14]) & 0x80) == 0))
Definition at line 93 of file 6lowpan.h.
#define lowpan_is_mcast_addr_compressable |
( |
|
a | ) |
|
Value:
(((
a)->s6_addr16[2]) == 0) && \
(((
a)->s6_addr16[4]) == 0) && \
(((
a)->s6_addr16[6]) == 0) && \
((((
a)->s6_addr[15]) == 1) || (((
a)->
s6_addr[15]) == 2)))
Definition at line 105 of file 6lowpan.h.
#define lowpan_is_mcast_addr_compressable32 |
( |
|
a | ) |
|
Value:
(((
a)->s6_addr16[2]) == 0) && \
(((
a)->s6_addr16[4]) == 0) && \
(((
a)->s6_addr[12]) == 0))
Definition at line 124 of file 6lowpan.h.
#define lowpan_is_mcast_addr_compressable48 |
( |
|
a | ) |
|
Value:
(((
a)->s6_addr16[2]) == 0) && \
(((
a)->s6_addr16[4]) == 0) && \
Definition at line 116 of file 6lowpan.h.
#define lowpan_is_mcast_addr_compressable8 |
( |
|
a | ) |
|
Value:
(((
a)->s6_addr16[1]) == 0) && \
(((
a)->s6_addr16[3]) == 0) && \
(((
a)->s6_addr16[5]) == 0) && \
(((
a)->s6_addr[14]) == 0))
Definition at line 133 of file 6lowpan.h.
#define LOWPAN_NHC_UDP_4BIT_MASK 0xFFF0 |
#define LOWPAN_NHC_UDP_4BIT_PORT 0xF0B0 |
#define LOWPAN_NHC_UDP_8BIT_MASK 0xFF00 |
#define LOWPAN_NHC_UDP_8BIT_PORT 0xF000 |
#define LOWPAN_NHC_UDP_CHECKSUMC 0x04 |
#define LOWPAN_NHC_UDP_CHECKSUMI 0x00 |
#define LOWPAN_NHC_UDP_CS_P_00 0xF0 /* all inline */ |
#define LOWPAN_NHC_UDP_CS_P_01 |
#define LOWPAN_NHC_UDP_CS_P_10 |
#define LOWPAN_NHC_UDP_CS_P_11 0xF3 /* source & dest = 0xF0B + 4bit inline */ |
#define LOWPAN_NHC_UDP_ID 0xF0 |
#define LOWPAN_NHC_UDP_MASK 0xF8 |
#define UIP_802154_SHORTADDR_LEN 2 /* compressed ipv6 address length */ |
#define UIP_FRAGH_LEN 8 /* ipv6 fragment header size */ |