diff options
author | alex.bluesman.smirnov@gmail.com <alex.bluesman.smirnov@gmail.com> | 2011-11-10 02:38:38 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-11-14 00:19:42 -0500 |
commit | 719269afbc69ab96339aad6c2d3b32f7d8311146 (patch) | |
tree | 26a25b23d982a8bccaa807ac813e3b387d133697 /net/ieee802154/6lowpan.h | |
parent | 2a24444f8f2bea694003e3eac5c2f8d9a386bdc5 (diff) |
6LoWPAN: add fragmentation support
This patch adds support for frame fragmentation.
Signed-off-by: Alexander Smirnov <alex.bluesman.smirnov@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ieee802154/6lowpan.h')
-rw-r--r-- | net/ieee802154/6lowpan.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/net/ieee802154/6lowpan.h b/net/ieee802154/6lowpan.h index 5d8cf80b930..5d2e5a03742 100644 --- a/net/ieee802154/6lowpan.h +++ b/net/ieee802154/6lowpan.h | |||
@@ -159,6 +159,24 @@ | |||
159 | #define LOWPAN_DISPATCH_FRAG1 0xc0 /* 11000xxx */ | 159 | #define LOWPAN_DISPATCH_FRAG1 0xc0 /* 11000xxx */ |
160 | #define LOWPAN_DISPATCH_FRAGN 0xe0 /* 11100xxx */ | 160 | #define LOWPAN_DISPATCH_FRAGN 0xe0 /* 11100xxx */ |
161 | 161 | ||
162 | #define LOWPAN_DISPATCH_MASK 0xf8 /* 11111000 */ | ||
163 | |||
164 | #define LOWPAN_FRAG_TIMEOUT (HZ * 60) /* time-out 60 sec */ | ||
165 | |||
166 | #define LOWPAN_FRAG1_HEAD_SIZE 0x4 | ||
167 | #define LOWPAN_FRAGN_HEAD_SIZE 0x5 | ||
168 | |||
169 | /* | ||
170 | * According IEEE802.15.4 standard: | ||
171 | * - MTU is 127 octets | ||
172 | * - maximum MHR size is 37 octets | ||
173 | * - MFR size is 2 octets | ||
174 | * | ||
175 | * so minimal payload size that we may guarantee is: | ||
176 | * MTU - MHR - MFR = 88 octets | ||
177 | */ | ||
178 | #define LOWPAN_FRAG_SIZE 88 | ||
179 | |||
162 | /* | 180 | /* |
163 | * Values of fields within the IPHC encoding first byte | 181 | * Values of fields within the IPHC encoding first byte |
164 | * (C stands for compressed and I for inline) | 182 | * (C stands for compressed and I for inline) |