[riot-notifications] [RIOT-OS/RIOT] gnrc/ipv6_auto_subnets: relax topology requirements (#16750)
notifications at github.com
Thu Sep 2 16:55:54 CEST 2021
@miri64 commented on this pull request.
> +static void _configure_subnets(uint8_t subnets, uint8_t start_idx, gnrc_netif_t *upstream,
+ const ndp_opt_pi_t *pio
+ const struct pio_cache *pio
Please don't do it this way. I know I did that too in the NIB, but it is horrible. It could be a nice solution to inherit `struct pio_cache` from `ndp_opt_pi_t` and only add additional fields needed when the pseudo-module is compiled in. If that is too wasteful for your liking, I would prefer different functions (or at least different _complete_ function declarations) for both modules. That way you also don't have some weird typing issues that might show up later, because the type within the function depends on the compile-time config.
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the notifications