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-26 23:05:36 +00:00
parent 6ab3a6d1e3
commit 75f04995a9
5 changed files with 91 additions and 69 deletions

View file

@ -57,4 +57,13 @@ void RTL8019dev_send(void);
unsigned int RTL8019dev_poll(void);
/*****************************************************************************
* RTL8019dev_exit()
* Created By: -
* Date: -
* Description: Final shutdown of the RTL8019
*****************************************************************************/
void RTL8019dev_exit(void);
#endif /* __RTL8019DEV_H__ */