From e77658fe26b63002e2e0a87647f55deeef53382f Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Sun, 19 Jun 2011 08:40:56 -0300 Subject: [PATCH] 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 --- tools/dirtpan/dirtpan.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tools/dirtpan/dirtpan.c b/tools/dirtpan/dirtpan.c index d8d9640..189b06a 100644 --- a/tools/dirtpan/dirtpan.c +++ b/tools/dirtpan/dirtpan.c @@ -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