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

gnrc_sixlowpan: compare with actual packet size for fragmentation

Not with the uncompressed version
parent 3d065310
No related branches found
No related tags found
No related merge requests found
...@@ -257,7 +257,7 @@ static void _send(gnrc_pktsnip_t *pkt) ...@@ -257,7 +257,7 @@ static void _send(gnrc_pktsnip_t *pkt)
/* IP should not send anything here if it is not a 6LoWPAN interface, /* IP should not send anything here if it is not a 6LoWPAN interface,
* so we don't need to check for NULL pointers */ * so we don't need to check for NULL pointers */
if (datagram_size <= iface->max_frag_size) { if (gnrc_pkt_len(pkt2->next) <= iface->max_frag_size) {
DEBUG("6lo: Send SND command for %p to %" PRIu16 "\n", DEBUG("6lo: Send SND command for %p to %" PRIu16 "\n",
(void *)pkt2, hdr->if_pid); (void *)pkt2, hdr->if_pid);
gnrc_netapi_send(hdr->if_pid, pkt2); gnrc_netapi_send(hdr->if_pid, pkt2);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment