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

@ -31,7 +31,7 @@
*
* This file is part of the uIP TCP/IP stack.
*
* $Id: tapdev.h,v 1.1 2007/03/31 18:49:40 adamdunkels Exp $
* $Id: tapdev.h,v 1.2 2007/05/20 21:32:24 oliverschmidt Exp $
*/
#ifndef __TAPDEV_H__
@ -40,5 +40,6 @@
void tapdev_init(void);
u16_t tapdev_poll(void);
void tapdev_send(void);
void tapdev_exit(void);
#endif /* __TAPDEV_H__ */