Adjusted packet forwarding to moving all ARP handling to service wrapper.

This commit is contained in:
oliverschmidt 2007-03-27 21:26:24 +00:00
parent 571b956400
commit 35051ffbd3
2 changed files with 8 additions and 8 deletions

View File

@ -29,7 +29,7 @@
*
* This file is part of the Contiki desktop environment
*
* $Id: contiki-main.c,v 1.2 2006/09/20 19:06:41 adamdunkels Exp $
* $Id: contiki-main.c,v 1.3 2007/03/27 21:26:24 oliverschmidt Exp $
*
*/
@ -68,9 +68,9 @@
#include "cmdd.h"
u8_t tapdev_send(void);
u8_t tapdev_output(void);
static struct uip_fw_netif tapif =
{UIP_FW_NETIF(0,0,0,0, 0,0,0,0, tapdev_send)};
{UIP_FW_NETIF(0,0,0,0, 0,0,0,0, tapdev_output)};
PROCESS(init_process, "Init");

View File

@ -28,7 +28,7 @@
*
* This file is part of the Contiki operating system.
*
* @(#)$Id: tapdev-service.c,v 1.3 2007/03/27 21:20:12 oliverschmidt Exp $
* @(#)$Id: tapdev-service.c,v 1.4 2007/03/27 21:26:25 oliverschmidt Exp $
*/
#include "contiki-net.h"
@ -37,15 +37,15 @@
#define BUF ((struct uip_eth_hdr *)&uip_buf[0])
static u8_t output(void);
u8_t tapdev_output(void);
SERVICE(tapdev_service, packet_service, { output });
SERVICE(tapdev_service, packet_service, { tapdev_output });
PROCESS(tapdev_process, "TAP driver");
/*---------------------------------------------------------------------------*/
static u8_t
output(void)
u8_t
tapdev_output(void)
{
uip_arp_out();
tapdev_send();