diff --git a/sys/include/net/gnrc/ipv6.h b/sys/include/net/gnrc/ipv6.h index 03b89cb8aa66..deb8536f3703 100644 --- a/sys/include/net/gnrc/ipv6.h +++ b/sys/include/net/gnrc/ipv6.h @@ -14,10 +14,7 @@ * The IPv6 control thread understands messages of type * * * @ref GNRC_NETAPI_MSG_TYPE_RCV, and - * * @ref GNRC_NETAPI_MSG_TYPE_SND. - * - * If the message is of type @ref GNRC_NETAPI_MSG_TYPE_RCV the provided @ref - * gnrc_pktsnip_t must contain a snip of type @ref GNRC_NETTYPE_NETIF. + * * @ref GNRC_NETAPI_MSG_TYPE_SND, * * @{ * diff --git a/sys/net/gnrc/network_layer/ipv6/gnrc_ipv6.c b/sys/net/gnrc/network_layer/ipv6/gnrc_ipv6.c index d608dcd3e869..eee0ac8c17f0 100644 --- a/sys/net/gnrc/network_layer/ipv6/gnrc_ipv6.c +++ b/sys/net/gnrc/network_layer/ipv6/gnrc_ipv6.c @@ -769,8 +769,9 @@ static void _receive(gnrc_pktsnip_t *pkt) netif = gnrc_pktsnip_search_type(pkt, GNRC_NETTYPE_NETIF); - assert(netif); - iface = ((gnrc_netif_hdr_t *)netif->data)->if_pid; + if (netif != NULL) { + iface = ((gnrc_netif_hdr_t *)netif->data)->if_pid; + } first_ext = pkt;