Changed the name of the rimeaddr module to linkaddr
This commit is contained in:
parent
765e9acded
commit
45265249fc
180 changed files with 930 additions and 930 deletions
|
@ -53,7 +53,7 @@
|
|||
#define PACKETBUF_H_
|
||||
|
||||
#include "contiki-conf.h"
|
||||
#include "net/rimeaddr.h"
|
||||
#include "net/linkaddr.h"
|
||||
|
||||
/**
|
||||
* \brief The size of the packetbuf, in bytes
|
||||
|
@ -323,7 +323,7 @@ struct packetbuf_attr {
|
|||
};
|
||||
struct packetbuf_addr {
|
||||
/* uint8_t type; */
|
||||
rimeaddr_t addr;
|
||||
linkaddr_t addr;
|
||||
};
|
||||
|
||||
#define PACKETBUF_ATTR_PACKET_TYPE_DATA 0
|
||||
|
@ -386,8 +386,8 @@ extern struct packetbuf_addr packetbuf_addrs[];
|
|||
|
||||
static int packetbuf_set_attr(uint8_t type, const packetbuf_attr_t val);
|
||||
static packetbuf_attr_t packetbuf_attr(uint8_t type);
|
||||
static int packetbuf_set_addr(uint8_t type, const rimeaddr_t *addr);
|
||||
static const rimeaddr_t *packetbuf_addr(uint8_t type);
|
||||
static int packetbuf_set_addr(uint8_t type, const linkaddr_t *addr);
|
||||
static const linkaddr_t *packetbuf_addr(uint8_t type);
|
||||
|
||||
static inline int
|
||||
packetbuf_set_attr(uint8_t type, const packetbuf_attr_t val)
|
||||
|
@ -403,14 +403,14 @@ packetbuf_attr(uint8_t type)
|
|||
}
|
||||
|
||||
static inline int
|
||||
packetbuf_set_addr(uint8_t type, const rimeaddr_t *addr)
|
||||
packetbuf_set_addr(uint8_t type, const linkaddr_t *addr)
|
||||
{
|
||||
/* packetbuf_addrs[type - PACKETBUF_ADDR_FIRST].type = type; */
|
||||
rimeaddr_copy(&packetbuf_addrs[type - PACKETBUF_ADDR_FIRST].addr, addr);
|
||||
linkaddr_copy(&packetbuf_addrs[type - PACKETBUF_ADDR_FIRST].addr, addr);
|
||||
return 1;
|
||||
}
|
||||
|
||||
static inline const rimeaddr_t *
|
||||
static inline const linkaddr_t *
|
||||
packetbuf_addr(uint8_t type)
|
||||
{
|
||||
return &packetbuf_addrs[type - PACKETBUF_ADDR_FIRST].addr;
|
||||
|
@ -418,8 +418,8 @@ packetbuf_addr(uint8_t type)
|
|||
#else /* PACKETBUF_CONF_ATTRS_INLINE */
|
||||
int packetbuf_set_attr(uint8_t type, const packetbuf_attr_t val);
|
||||
packetbuf_attr_t packetbuf_attr(uint8_t type);
|
||||
int packetbuf_set_addr(uint8_t type, const rimeaddr_t *addr);
|
||||
const rimeaddr_t *packetbuf_addr(uint8_t type);
|
||||
int packetbuf_set_addr(uint8_t type, const linkaddr_t *addr);
|
||||
const linkaddr_t *packetbuf_addr(uint8_t type);
|
||||
#endif /* PACKETBUF_CONF_ATTRS_INLINE */
|
||||
|
||||
void packetbuf_attr_clear(void);
|
||||
|
@ -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(rimeaddr_t) * PACKETBUF_ATTR_BYTE)
|
||||
#define PACKETBUF_ADDRSIZE (sizeof(linkaddr_t) * PACKETBUF_ATTR_BYTE)
|
||||
|
||||
struct packetbuf_attrlist {
|
||||
uint8_t type;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue