Skip to content

Commit

Permalink
gnrc_ipv6: use gnrc_netif_hdr_get_netif()
Browse files Browse the repository at this point in the history
  • Loading branch information
miri64 committed Jul 25, 2019
1 parent 7b43a8f commit 2afa679
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys/net/gnrc/network_layer/ipv6/gnrc_ipv6.c
Expand Up @@ -630,7 +630,7 @@ static void _receive(gnrc_pktsnip_t *pkt)
netif_hdr = gnrc_pktsnip_search_type(pkt, GNRC_NETTYPE_NETIF);

if (netif_hdr != NULL) {
netif = gnrc_netif_get_by_pid(((gnrc_netif_hdr_t *)netif_hdr->data)->if_pid);
netif = gnrc_netif_hdr_get_netif(netif_hdr->data);
#ifdef MODULE_NETSTATS_IPV6
assert(netif != NULL);
netstats_t *stats = &netif->ipv6.stats;
Expand Down

0 comments on commit 2afa679

Please sign in to comment.