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:
adamdunkels 2009-03-12 21:58:20 +00:00
parent 932fc9f748
commit 65eb5fd4e8
90 changed files with 690 additions and 687 deletions

View file

@ -28,7 +28,7 @@
*
* This file is part of the Contiki operating system.
*
* $Id: sky-shell.c,v 1.9 2009/02/14 22:53:00 adamdunkels Exp $
* $Id: sky-shell.c,v 1.10 2009/03/12 21:58:21 adamdunkels Exp $
*/
/**
@ -75,11 +75,11 @@ input_sniffer(void)
int i;
uint8_t *dataptr;
printf("x %d ", rimebuf_totlen());
dataptr = rimebuf_dataptr();
printf("x %d ", packetbuf_totlen());
dataptr = packetbuf_dataptr();
printf("%02x ", dataptr[0]);
/* if(dataptr[0] == 18) {*/
for(i = 1; i < rimebuf_totlen(); ++i) {
for(i = 1; i < packetbuf_totlen(); ++i) {
printf("%02x ", dataptr[i]);
}
/* }*/
@ -90,8 +90,8 @@ static void
output_sniffer(void)
{
uint8_t *dataptr;
printf("- %d ", rimebuf_totlen());
dataptr = rimebuf_dataptr();
printf("- %d ", packetbuf_totlen());
dataptr = packetbuf_dataptr();
printf("%02x\n", dataptr[0]);
}
/*---------------------------------------------------------------------------*/