Commit 62d128f5 authored by Simon Duquennoy's avatar Simon Duquennoy
Browse files

RPL Classic: added stub implementations of NS functions when NS is disabled

parent f8ddf8c8
......@@ -225,5 +225,45 @@ rpl_ns_periodic(void)
}
}
}
/*---------------------------------------------------------------------------*/
#else /* RPL_WITH_NON_STORING */
/*---------------------------------------------------------------------------*/
int
rpl_ns_num_nodes(void)
{
return 0;
}
/*---------------------------------------------------------------------------*/
rpl_ns_node_t *
rpl_ns_node_head(void)
{
return NULL;
}
/*---------------------------------------------------------------------------*/
rpl_ns_node_t *
rpl_ns_node_next(rpl_ns_node_t *item)
{
return NULL;
}
/*---------------------------------------------------------------------------*/
void
rpl_ns_get_node_global_addr(uip_ipaddr_t *addr, rpl_ns_node_t *node)
{
}
/*---------------------------------------------------------------------------*/
rpl_ns_node_t *
rpl_ns_get_node(const rpl_dag_t *dag, const uip_ipaddr_t *addr)
{
return NULL;
}
/*---------------------------------------------------------------------------*/
int
rpl_ns_is_node_reachable(const rpl_dag_t *dag, const uip_ipaddr_t *addr)
{
return 0;
}
/*---------------------------------------------------------------------------*/
#endif /* RPL_WITH_NON_STORING */
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment