diff --git a/sys/net/gnrc/network_layer/icmpv6/echo/gnrc_icmpv6_echo.c b/sys/net/gnrc/network_layer/icmpv6/echo/gnrc_icmpv6_echo.c index a48ac04f37..c64f02eeb6 100644 --- a/sys/net/gnrc/network_layer/icmpv6/echo/gnrc_icmpv6_echo.c +++ b/sys/net/gnrc/network_layer/icmpv6/echo/gnrc_icmpv6_echo.c @@ -100,7 +100,7 @@ void gnrc_icmpv6_echo_req_handle(gnrc_netif_t *netif, ipv6_hdr_t *ipv6_hdr, } if (netif != NULL) { - ((gnrc_netif_hdr_t *)hdr->data)->if_pid = netif->pid; + gnrc_netif_hdr_set_netif(hdr->data, netif); } else { /* ipv6_hdr->dst is loopback address */