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
5f3296e943
commit
a22d2ecfef
5 changed files with 19 additions and 18 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue