Skip to content

Commit

Permalink
fixup! nib: implement public NIB functions up to link-local AR
Browse files Browse the repository at this point in the history
  • Loading branch information
miri64 committed Oct 10, 2017
1 parent 5f93ff0 commit 0540bea
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions sys/net/gnrc/network_layer/ipv6/nib/nib.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,19 @@ void gnrc_ipv6_nib_init_iface(kernel_pid_t iface)
DEBUG("nib: Initialize interface %u\n", (unsigned)iface);
mutex_lock(&_nib_mutex);
nib_iface = _nib_iface_get(iface);
#ifdef TEST_SUITES
if (nib_iface == NULL) {
/* in the unittests old NC and NIB are mixed, so this function leads to
* crashes. To prevent this we early exit here, if the interface was
* not found
* TODO: remove when gnrc_ipv6_nc is removed.
*/
mutex_unlock(&_nib_mutex);
return;
}
#else
assert(nib_iface != NULL);
#endif
/* TODO:
* - set link-local address here for stateless address auto-configuration
* and 6LN
Expand Down

0 comments on commit 0540bea

Please sign in to comment.