[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:14:00 CEST 2019


miri64 commented on this pull request.



> +        switch (ptr->type) {
+            case GNRC_NETTYPE_IPV6: {
+                ipv6_hdr_t *hdr = ptr->data;
+                last_per_frag = ptr;
+                nh = hdr->nh;
+                break;
+            }
+            case GNRC_NETTYPE_IPV6_EXT: {
+                ipv6_ext_t *hdr = ptr->data;
+                switch (nh) {
+                    /* "[...] that is, all headers up to and including the
+                     * Routing header if present, else the Hop-by-Hop Options
+                     * header if present, [...]"
+                     * (IPv6 header comes before Hop-by-Hop Options comes before
+                     * Routing header, so an override to keep the quoted
+                     * priorities is ensured) */

That's why you have to have at least 1280 bytes PDU with IPv6 ;-).

-- 
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_r325012276
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190917/56c6be1d/attachment.htm>


More information about the notifications mailing list