在 Contiki 中删除路由

Remove route in Contiki

如果检测到攻击,我正在尝试删除 Contiki 中的路由。我正在使用 struct route_entry *e; route_remove(e);

但我收到以下错误:undefined reference to 'route_remove'

route_remove 是一个 Rime 网络栈函数。默认情况下,Contiki 是用 uIP (IPv6) 网络栈构建的,它没有这个功能。

要在使用 IPv6 网络堆栈时删除路由,call this function:

void uip_ds6_route_rm (uip_ds6_route_t *route).