I am trying to remove a route in Contiki if attack is detected. I am using struct route_entry *e; route_remove(e);
But I am getting the following error: undefined reference to 'route_remove'
.
CodePudding user response:
route_remove
is a Rime network stack function. By default, Contiki is built with uIP (IPv6) network stack, which does not have this function.
To remove a route when the IPv6 network stack is used, call this function:
void uip_ds6_route_rm (uip_ds6_route_t *route)
.