Skip to content
Snippets Groups Projects
Commit b4475013 authored by Martine Lenders's avatar Martine Lenders Committed by Martine Lenders
Browse files

gnrc_ipv6: use gnrc_netif_hdr_get_netif() function

parent b90fff9f
No related branches found
No related tags found
No related merge requests found
...@@ -639,7 +639,7 @@ static void _send(gnrc_pktsnip_t *pkt, bool prep_hdr) ...@@ -639,7 +639,7 @@ static void _send(gnrc_pktsnip_t *pkt, bool prep_hdr)
* higher layers wants to provide flags to the interface ) */ * higher layers wants to provide flags to the interface ) */
const gnrc_netif_hdr_t *netif_hdr = pkt->data; const gnrc_netif_hdr_t *netif_hdr = pkt->data;
netif = gnrc_netif_get_by_pid(((gnrc_netif_hdr_t *)pkt->data)->if_pid); netif = gnrc_netif_hdr_get_netif(pkt->data);
/* discard broadcast and multicast flags because those could be /* discard broadcast and multicast flags because those could be
* potentially wrong (dst is later checked to assure that multicast is * potentially wrong (dst is later checked to assure that multicast is
* set if dst is a multicast address) */ * set if dst is a multicast address) */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment