gnrc_ipv6: use gnrc_netif_hdr_get_netif() function

This commit is contained in:
Martine Lenders 2018-11-28 17:47:53 +01:00 committed by Martine Lenders
parent b90fff9f06
commit b447501382

View File

@ -639,7 +639,7 @@ static void _send(gnrc_pktsnip_t *pkt, bool prep_hdr)
* higher layers wants to provide flags to the interface ) */
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
* potentially wrong (dst is later checked to assure that multicast is
* set if dst is a multicast address) */