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
|
@ -62,13 +62,13 @@ static const struct packetbuf_attrlist attributes[] =
|
|||
static void
|
||||
recv_from_abc(struct abc_conn *bc)
|
||||
{
|
||||
rimeaddr_t sender;
|
||||
linkaddr_t sender;
|
||||
struct broadcast_conn *c = (struct broadcast_conn *)bc;
|
||||
|
||||
rimeaddr_copy(&sender, packetbuf_addr(PACKETBUF_ADDR_SENDER));
|
||||
linkaddr_copy(&sender, packetbuf_addr(PACKETBUF_ADDR_SENDER));
|
||||
|
||||
PRINTF("%d.%d: broadcast: from %d.%d\n",
|
||||
rimeaddr_node_addr.u8[0],rimeaddr_node_addr.u8[1],
|
||||
linkaddr_node_addr.u8[0],linkaddr_node_addr.u8[1],
|
||||
sender.u8[0], sender.u8[1]);
|
||||
if(c->u->recv) {
|
||||
c->u->recv(c, &sender);
|
||||
|
@ -81,7 +81,7 @@ sent_by_abc(struct abc_conn *bc, int status, int num_tx)
|
|||
struct broadcast_conn *c = (struct broadcast_conn *)bc;
|
||||
|
||||
PRINTF("%d.%d: sent to %d.%d status %d num_tx %d\n",
|
||||
rimeaddr_node_addr.u8[0],rimeaddr_node_addr.u8[1],
|
||||
linkaddr_node_addr.u8[0],linkaddr_node_addr.u8[1],
|
||||
packetbuf_addr(PACKETBUF_ADDR_SENDER)->u8[0],
|
||||
packetbuf_addr(PACKETBUF_ADDR_SENDER)->u8[1],
|
||||
status, num_tx);
|
||||
|
@ -111,8 +111,8 @@ int
|
|||
broadcast_send(struct broadcast_conn *c)
|
||||
{
|
||||
PRINTF("%d.%d: broadcast_send\n",
|
||||
rimeaddr_node_addr.u8[0],rimeaddr_node_addr.u8[1]);
|
||||
packetbuf_set_addr(PACKETBUF_ADDR_SENDER, &rimeaddr_node_addr);
|
||||
linkaddr_node_addr.u8[0],linkaddr_node_addr.u8[1]);
|
||||
packetbuf_set_addr(PACKETBUF_ADDR_SENDER, &linkaddr_node_addr);
|
||||
return abc_send(&c->c);
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue