add an offset to packet_t to compensate for the added length byte on

reception
This commit is contained in:
Mariano Alvira 2010-03-07 17:04:30 -05:00
parent 8421031d4a
commit 024448e65e
5 changed files with 10 additions and 4 deletions

View file

@ -47,7 +47,7 @@ uint32_t get_time(void) {
#define random_short_addr() (*MACA_RANDOM & ones(sizeof(short_addr_t)*8))
void build_session_req(volatile packet_t *p) {
p->length = 4;
p->length = 4; p->offset = 0;
p->data[0] = 0x01;
p->data[1] = 0x02;
p->data[2] = 0x03;