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:
parent
6ab3a6d1e3
commit
75f04995a9
5 changed files with 91 additions and 69 deletions
|
@ -31,7 +31,7 @@
|
|||
*
|
||||
* This file is part of the uIP TCP/IP stack.
|
||||
*
|
||||
* $Id: rtl8019-drv.h,v 1.1 2006/06/17 22:41:21 adamdunkels Exp $
|
||||
* $Id: rtl8019-drv.h,v 1.2 2007/05/26 23:05:36 oliverschmidt Exp $
|
||||
*
|
||||
*/
|
||||
#ifndef __RTL8019_DRV_H__
|
||||
|
@ -39,6 +39,8 @@
|
|||
|
||||
#include "contiki.h"
|
||||
|
||||
PROCESS_NAME(rtl8019_drv_process);
|
||||
PROCESS_NAME(rtl8019_process);
|
||||
|
||||
u8_t rtl8019_output(void);
|
||||
|
||||
#endif /* __RTL8019_DRV_H__ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue