mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-27 15:31:17 +01:00
gnrc_icmpv6_error: don't include netif header into fit
This commit is contained in:
parent
c4175a5e52
commit
f0da2a0cd7
@ -51,6 +51,7 @@ static size_t _fit(const gnrc_pktsnip_t *orig_pkt)
|
||||
gnrc_netif_hdr_t *data = netif_hdr->data;
|
||||
gnrc_netif_t *netif = gnrc_netif_get_by_pid(data->if_pid);
|
||||
|
||||
pkt_len -= netif_hdr->size;
|
||||
DEBUG("gnrc_icmpv6_error: fitting to MTU of iface %u (%u)\n",
|
||||
netif->pid, netif->ipv6.mtu);
|
||||
return MIN(pkt_len, netif->ipv6.mtu - sizeof(ipv6_hdr_t));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user