[riot-notifications] [RIOT-OS/RIOT] gnrc_ipv6_nib: auto-configure downstream subnets (#16536)

benpicco notifications at github.com
Wed Aug 4 15:15:11 CEST 2021


@benpicco commented on this pull request.



> +        /* create subnet by adding interface index */
+        new_prefix.u64[0].u64 = byteorder_ntohll(prefix->u64[0]);
+        new_prefix.u64[0].u64 |= (uint64_t)subnets-- << (63 - prefix_len);

I mean they are just enumerated. If there are two subnets the first one will be #2 and the second one will be #1 (so just counting down the subnet number - the exact numbers are not important as long as the bit patterns are different). 

-- 
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/16536#discussion_r682603960
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210804/7028f9e3/attachment.htm>


More information about the notifications mailing list