[riot-notifications] [RIOT-OS/RIOT] sys/net/dhcpv6: send final RA after configuring downstream subnets (#16590)

benpicco notifications at github.com
Mon Jun 28 11:54:48 CEST 2021

The RIOT community cares a lot about code quality.
Therefore, before describing what your contribution is about, we would like
you to make sure that your modifications are compliant with the RIOT
coding conventions, see https://github.com/RIOT-OS/RIOT/wiki/Coding-conventions.

### Contribution description

If the upstream router manages a /56 and hands our DHCPv6 IA_PD enabled router a /62 for use in it's downstream network, hosts in the upstream network may still assume that hosts on the new subnet are on-link.

To fix this, we include the  route information option about the subnets routed via our router in the last router advertisement.

This means we must delay sending the last router advertisement until the downstream interface(s) have been configured.

To speed up configuration, start with RAs disabled and only enable sending them once we have received a valid configuration via DHCPv6.

### Testing procedure

Details steps to test your contribution:
- which test/example to compile for which board and is there a 'test' command
- how to know that it was not working/available in master
- the expected success test output

### Issues/PRs references

depends on #16568

You can view, comment on, or merge this pull request online at:


-- Commit Summary --

  * sys/net/dhcpv6: send final RA after configuring downstream subnets

-- File Changes --

    M sys/include/net/dhcpv6/client.h (7)
    M sys/include/net/gnrc/ipv6/nib/conf.h (3)
    M sys/net/application_layer/dhcpv6/client.c (2)
    M sys/net/gnrc/application_layer/dhcpv6/client.c (11)
    M sys/net/gnrc/application_layer/dhcpv6/client_simple_pd.c (9)

-- Patch Links --


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...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210628/fee21a22/attachment.htm>

More information about the notifications mailing list