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:12:56 +00:00
parent 75f04995a9
commit e7bc74a9d0

View file

@ -5,7 +5,7 @@
#include <ctype.h> #include <ctype.h>
#include <stdio.h> #include <stdio.h>
#include <net/uip.h> #include <net/uip.h>
#include "net/uip-fw-service.h" #include "net/uip-fw-drv.h"
#include "net/uaodv.h" #include "net/uaodv.h"
#include <dev/cc2420.h> #include <dev/cc2420.h>
#include <dev/cc2420_const.h> #include <dev/cc2420_const.h>