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:41:31 +00:00
parent 5f3296e943
commit a22d2ecfef
5 changed files with 19 additions and 18 deletions

View file

@ -296,10 +296,6 @@
<Filter
Name="net"
>
<File
RelativePath="..\..\..\core\net\packet-service.h"
>
</File>
<File
RelativePath="..\..\..\core\net\psock.h"
>
@ -457,11 +453,11 @@
Name="net"
>
<File
RelativePath="..\..\..\cpu\native\net\wpcap-service.c"
RelativePath="..\..\..\cpu\native\net\wpcap-drv.c"
>
</File>
<File
RelativePath="..\..\..\cpu\native\net\wpcap-service.h"
RelativePath="..\..\..\cpu\native\net\wpcap-drv.h"
>
</File>
<File