Skip to content

Commit

Permalink
fixup! gnrc_sixlowpan_iphc/minfwd: put only IPHC dispatch in first fr…
Browse files Browse the repository at this point in the history
…agment
  • Loading branch information
miri64 committed Mar 12, 2019
1 parent 6542506 commit 2e4c0ad
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -249,14 +249,10 @@ int gnrc_sixlowpan_frag_minfwd_frag_iphc(gnrc_pktsnip_t *pkt,
if (!ipv6_addr_is_link_local(ipv6_dst) &&
(frag_msg->datagram_size > netif->sixlo.max_frag_size)) {
frag_msg->pkt = pkt; /* packet might have been rewritten */
#ifdef MODULE_GNRC_SIXLOWPAN_FRAG_HINT
/* put slack of IPHC in first fragment */
frag_msg->hint.fragsz = pkt->next->size;
frag_msg->hint.fragsz_uncomp = orig_datagram_size -
gnrc_pkt_len(pkt->next->next);
#else /* MODULE_GNRC_SIXLOWPAN_FRAG_HINT */
(void)orig_datagram_size;
#endif /* MODULE_GNRC_SIXLOWPAN_FRAG_HINT */
gnrc_sixlowpan_frag_send(NULL, frag_msg, 0);
res = 0;
}
Expand Down

0 comments on commit 2e4c0ad

Please # to comment.