Changed to use LINKADDR_SIZE instead of sizeof() to select between

short address and long address as some platforms might use padding in
the struct. This fixes #555.
This commit is contained in:
Niclas Finne 2014-04-11 17:16:59 +02:00
parent dbb8f3ec13
commit b1335b08a8
2 changed files with 3 additions and 3 deletions

View file

@ -434,7 +434,7 @@ void packetbuf_attr_copyfrom(struct packetbuf_attr *attrs,
#define PACKETBUF_ATTR_BIT 1
#define PACKETBUF_ATTR_BYTE 8
#define PACKETBUF_ADDRSIZE (sizeof(linkaddr_t) * PACKETBUF_ATTR_BYTE)
#define PACKETBUF_ADDRSIZE (LINKADDR_SIZE * PACKETBUF_ATTR_BYTE)
struct packetbuf_attrlist {
uint8_t type;