1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-10-01 12:59:26 +03:00

tools/dirtpan/dirtpan.c: cleaned up embarrassing explanation of control byte

- dirtpan.c: changed control byte from innovative 7 bit layout to the
  more common 8 bits. My, haven't we had our morning coffee yet ?
- dirtpan.c: added explanation that the two highest bits of the
  control byte have to be zero, to avoid conflicting with RFC4944
This commit is contained in:
Werner Almesberger 2011-06-19 08:40:56 -03:00
parent 29664701a8
commit e77658fe26

View File

@ -37,9 +37,12 @@
/*
* Control byte structure:
*
* +--7--+--6--+--5--+--4--+--3--+--2--+--1--+
* | 0 | 0 | 0 | 0 | seq | pck_type |
* +-----+-----+-----+-----+-----+-----+-----+
* +--7--+--6--+--5--+--4--+--3--+--2--+--1--+--0--+
* | 0 | 0 | 0 | 0 | 0 | seq | pck_type |
* +-----+-----+-----+-----+-----+-----+-----+-----+
* =============
*
* Bits 6 and 7 must be zero to avoid conflicts with RFC 4944 (LoWPAN)
*/
#define SEQ 4