44 LIST(ip_processor_list);
47 enum netstack_ip_action
48 netstack_process_ip_callback(uint8_t type,
const linkaddr_t *localdest)
50 enum netstack_ip_action action = NETSTACK_IP_PROCESS;
51 struct netstack_ip_packet_processor *p;
55 if(type == NETSTACK_IP_OUTPUT) {
56 if(p->process_output != NULL) {
57 action = p->process_output(localdest);
59 }
else if(type == NETSTACK_IP_INPUT) {
60 if(p->process_input != NULL) {
61 action = p->process_input();
65 if(action != NETSTACK_IP_PROCESS)
72 netstack_ip_packet_processor_add(
struct netstack_ip_packet_processor *p)
80 uip_ds6_ip_packet_processor_rm(
struct netstack_ip_packet_processor *p)
89 NETSTACK_RADIO.init();
91 NETSTACK_NETWORK.init();
Linked list manipulation routines.
void * list_head(list_t list)
Get a pointer to the first element of a list.
void list_add(list_t list, void *item)
Add an item at the end of a list.
#define LIST(name)
Declare a linked list.
void(* init)(void)
Initialize the MAC driver.
Include file for the Contiki low-layer network stack (NETSTACK)
void list_remove(list_t list, void *item)
Remove a specific element from a list.
void * list_item_next(void *item)
Get the next item following this item.