Changed packet drivers from services to plain processes.

Now tcpip_output() is a function pointer that is supposed to be set via the macro tcpip_set_outputfunc(). Packet drivers do so on process startup.

Thus if there are several packet drivers in a Contiki system the one started last is the one actually used. This behaviour is especially useful for the 'IP forwarding' "meta" packet driver.
This commit is contained in:
oliverschmidt 2007-05-20 21:29:39 +00:00
parent 42a952981b
commit 5f3296e943
21 changed files with 93 additions and 311 deletions

View file

@ -29,7 +29,7 @@
*
* This file is part of the Contiki OS
*
* $Id: contiki-main.c,v 1.5 2007/05/19 21:18:10 oliverschmidt Exp $
* $Id: contiki-main.c,v 1.6 2007/05/20 21:36:31 oliverschmidt Exp $
*
*/
@ -37,9 +37,9 @@
#include "net/uip.h"
#ifdef __CYGWIN__
#include "net/wpcap-service.h"
#include "net/wpcap-drv.h"
#else
#include "net/tapdev-service.h"
#include "net/tapdev-drv.h"
#endif
#ifdef __CYGWIN__