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.h,v 1.1 2007/04/01 20:39:38 oliverschmidt Exp $
* $Id: wpcap.h,v 1.2 2007/05/20 21:32:24 oliverschmidt Exp $
*/
#ifndef __WPCAP_H__
@ -39,5 +39,6 @@
void wpcap_init(void);
u16_t wpcap_poll(void);
void wpcap_send(void);
void wpcap_exit(void);
#endif /* __WPCAP_H__ */