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

gnrc_icmpv6_error: use gnrc_netif_hdr_get_netif() function

parent f95cabe8
No related branches found
No related tags found
No related merge requests found
...@@ -49,8 +49,7 @@ static size_t _fit(const gnrc_pktsnip_t *orig_pkt) ...@@ -49,8 +49,7 @@ static size_t _fit(const gnrc_pktsnip_t *orig_pkt)
sizeof(ipv6_hdr_t); sizeof(ipv6_hdr_t);
if (netif_hdr) { if (netif_hdr) {
gnrc_netif_hdr_t *data = netif_hdr->data; gnrc_netif_t *netif = gnrc_netif_hdr_get_netif(netif_hdr->data);
gnrc_netif_t *netif = gnrc_netif_get_by_pid(data->if_pid);
pkt_len -= netif_hdr->size; pkt_len -= netif_hdr->size;
DEBUG("gnrc_icmpv6_error: fitting to MTU of iface %u (%u)\n", DEBUG("gnrc_icmpv6_error: fitting to MTU of iface %u (%u)\n",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment