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

@ -30,7 +30,7 @@
*
* Author: Oliver Schmidt <ol.sc@web.de>
*
* $Id: wpcap.c,v 1.6 2007/04/11 00:21:28 oliverschmidt Exp $
* $Id: wpcap.c,v 1.7 2007/05/20 21:32:24 oliverschmidt Exp $
*/
#define WIN32_LEAN_AND_MEAN
@ -249,3 +249,8 @@ wpcap_send(void)
}
}
/*---------------------------------------------------------------------------*/
void
wpcap_exit(void)
{
}
/*---------------------------------------------------------------------------*/