RPL-CLASSIC: Add guard for urgent probing

Compiling with RPL_CONF_WITH_PROBING := 0 was not possible due to `urgent_probing_target`
not present.
This commit is contained in:
Olav Frengstad 2018-08-31 14:56:11 +02:00
parent b49477441c
commit 54e5944d89

View File

@ -268,9 +268,11 @@ rpl_link_callback(const linkaddr_t *addr, int status, int numtx)
if(parent != NULL) { if(parent != NULL) {
/* If this is the neighbor we were probing urgently, mark urgent /* If this is the neighbor we were probing urgently, mark urgent
probing as done */ probing as done */
#if RPL_WITH_PROBING
if(instance->urgent_probing_target == parent) { if(instance->urgent_probing_target == parent) {
instance->urgent_probing_target = NULL; instance->urgent_probing_target = NULL;
} }
#endif /* RPL_WITH_PROBING */
/* Trigger DAG rank recalculation. */ /* Trigger DAG rank recalculation. */
PRINTF("RPL: rpl_link_callback triggering update\n"); PRINTF("RPL: rpl_link_callback triggering update\n");
parent->flags |= RPL_PARENT_FLAG_UPDATED; parent->flags |= RPL_PARENT_FLAG_UPDATED;