Renamed the rimebuf module to packetbuf to signal that the module is used outside of a pure Rime context (e.g., the sicslowpan code uses it).
This commit is contained in:
parent
932fc9f748
commit
65eb5fd4e8
90 changed files with 690 additions and 687 deletions
|
@ -28,7 +28,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: example-multihop.c,v 1.2 2009/01/16 17:40:16 nifi Exp $
|
||||
* $Id: example-multihop.c,v 1.3 2009/03/12 21:58:21 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -54,13 +54,13 @@ static void
|
|||
recv(struct multihop_conn *c, rimeaddr_t *sender, rimeaddr_t *prevhop,
|
||||
uint8_t hops)
|
||||
{
|
||||
printf("multihop message received '%s'\n", (char *)rimebuf_dataptr());
|
||||
printf("multihop message received '%s'\n", (char *)packetbuf_dataptr());
|
||||
}
|
||||
static rimeaddr_t *
|
||||
forward(struct multihop_conn *c, rimeaddr_t *originator, rimeaddr_t *dest,
|
||||
rimeaddr_t *prevhop, uint8_t hops)
|
||||
{
|
||||
printf("Forwarding message '%s'\n", (char *)rimebuf_dataptr());
|
||||
printf("Forwarding message '%s'\n", (char *)packetbuf_dataptr());
|
||||
return NULL;
|
||||
}
|
||||
static const struct multihop_callbacks multihop_call = {recv, forward};
|
||||
|
@ -82,7 +82,7 @@ PROCESS_THREAD(example_multihop_process, ev, data)
|
|||
|
||||
PROCESS_WAIT_EVENT_UNTIL(etimer_expired(&et));
|
||||
|
||||
rimebuf_copyfrom("Hej", 4);
|
||||
packetbuf_copyfrom("Hej", 4);
|
||||
to.u8[0] = 161;
|
||||
to.u8[1] = 161;
|
||||
multihop_send(&multihop, &to);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue