Date:2011-06-19 13:40:56 (8 years 1 month ago)
Author:Werner Almesberger
Commit:e77658fe26b63002e2e0a87647f55deeef53382f
Message: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
Files: tools/dirtpan/dirtpan.c (1 diff)

Change Details

tools/dirtpan/dirtpan.c
3737/*
3838 * Control byte structure:
3939 *
40 * +--7--+--6--+--5--+--4--+--3--+--2--+--1--+
41 * | 0 | 0 | 0 | 0 | seq | pck_type |
42 * +-----+-----+-----+-----+-----+-----+-----+
40 * +--7--+--6--+--5--+--4--+--3--+--2--+--1--+--0--+
41 * | 0 | 0 | 0 | 0 | 0 | seq | pck_type |
42 * +-----+-----+-----+-----+-----+-----+-----+-----+
43 * =============
44 *
45 * Bits 6 and 7 must be zero to avoid conflicts with RFC 4944 (LoWPAN)
4346 */
4447
4548#define SEQ 4

Archive Download the corresponding diff file



interactive