gnrc_sixlowpan_frag: copy netif header directly

This commit is contained in:
Martine S. Lenders 2019-10-29 14:50:08 +01:00 committed by Martine Lenders
parent 89033d275a
commit d5e21f35c3

View File

@ -103,10 +103,8 @@ static gnrc_pktsnip_t *_build_frag_pkt(gnrc_pktsnip_t *pkt,
} }
new_netif_hdr = netif->data; new_netif_hdr = netif->data;
new_netif_hdr->if_pid = netif_hdr->if_pid; /* src_l2addr_len and dst_l2addr_len are already the same, now copy the rest */
new_netif_hdr->flags = netif_hdr->flags; *new_netif_hdr = *netif_hdr;
new_netif_hdr->rssi = netif_hdr->rssi;
new_netif_hdr->lqi = netif_hdr->lqi;
frag = gnrc_pktbuf_add(NULL, NULL, fragment_size, GNRC_NETTYPE_SIXLOWPAN); frag = gnrc_pktbuf_add(NULL, NULL, fragment_size, GNRC_NETTYPE_SIXLOWPAN);