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

@ -35,7 +35,7 @@
*
* This file is part of the Contiki desktop OS
*
* $Id: contiki-conf.h,v 1.10 2008/05/14 19:19:29 adamdunkels Exp $
* $Id: contiki-conf.h,v 1.11 2009/03/12 21:58:21 adamdunkels Exp $
*
*/
@ -107,8 +107,8 @@ typedef unsigned long clock_time_t;
/*------------------------------------------------------------------------------*/
#define RIMEBUF_CONF_SIZE 128
#define RIMEBUF_CONF_HDR_SIZE 32
#define PACKETBUF_CONF_SIZE 128
#define PACKETBUF_CONF_HDR_SIZE 32
#define UIP_CONF_UIP_IP4ADDR_T_WITH_U32 1

View file

@ -30,7 +30,7 @@
*
* Author: Adam Dunkels <adam@sics.se>
*
* $Id: ethernode-rime.c,v 1.6 2007/05/22 21:09:19 adamdunkels Exp $
* $Id: ethernode-rime.c,v 1.7 2009/03/12 21:58:21 adamdunkels Exp $
*/
#include "contiki.h"
@ -53,12 +53,12 @@ receiver(void)
{
u8_t len;
rimebuf_clear();
packetbuf_clear();
len = ethernode_read(rimebuf_dataptr(), RIMEBUF_SIZE);
len = ethernode_read(packetbuf_dataptr(), PACKETBUF_SIZE);
if(len > 0) {
rimebuf_set_datalen(len);
packetbuf_set_datalen(len);
rime_input();
}
}
@ -66,7 +66,7 @@ receiver(void)
void
ethernode_rime_send(void)
{
ethernode_send_buf(rimebuf_hdrptr(), rimebuf_totlen());
ethernode_send_buf(packetbuf_hdrptr(), packetbuf_totlen());
}
/*---------------------------------------------------------------------------*/
void