[riot-notifications] [RIOT-OS/RIOT] gnrc_ipv6_ext_frag: Initial import of IPv6 fragmentation (#11623)

Martine Lenders notifications at github.com
Tue Sep 17 09:24:33 CEST 2019


miri64 commented on this pull request.



> +            snd_buf->pkt->next = snd_buf->pkt->next->next;
+            ptr->next = NULL;
+        }
+        last->next = ptr;
+        last = ptr;
+        remaining -= ptr->size;
+        snd_buf->offset += ptr->size;
+    }
+    assert(len != NULL);
+    /* adapt IPv6 header length field */
+    *len = byteorder_htons(gnrc_pkt_len(to_send->next->next));
+    msg.type = GNRC_IPV6_EXT_FRAG_SEND_FRAG;
+    msg.content.ptr = to_send;
+    msg_try_send(&msg, gnrc_ipv6_pid);
+    if (last_fragment) {
+        _snd_buf_del(snd_buf);

No, as the packet was sent to the IPv6 thread in the message above we don't want to discard it yet. But as the fragment was the last we _can_ discard the fragmentation buffer.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/11623#discussion_r325016230
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190917/0ec6f579/attachment.htm>


More information about the notifications mailing list