From 54e5944d89853634b12540431a762eb6cf3de7d5 Mon Sep 17 00:00:00 2001 From: Olav Frengstad Date: Fri, 31 Aug 2018 14:56:11 +0200 Subject: [PATCH] RPL-CLASSIC: Add guard for urgent probing Compiling with RPL_CONF_WITH_PROBING := 0 was not possible due to `urgent_probing_target` not present. --- os/net/routing/rpl-classic/rpl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/os/net/routing/rpl-classic/rpl.c b/os/net/routing/rpl-classic/rpl.c index ecbcdc158..751bc6ef1 100644 --- a/os/net/routing/rpl-classic/rpl.c +++ b/os/net/routing/rpl-classic/rpl.c @@ -268,9 +268,11 @@ rpl_link_callback(const linkaddr_t *addr, int status, int numtx) if(parent != NULL) { /* If this is the neighbor we were probing urgently, mark urgent probing as done */ +#if RPL_WITH_PROBING if(instance->urgent_probing_target == parent) { instance->urgent_probing_target = NULL; } +#endif /* RPL_WITH_PROBING */ /* Trigger DAG rank recalculation. */ PRINTF("RPL: rpl_link_callback triggering update\n"); parent->flags |= RPL_PARENT_FLAG_UPDATED;