From fec156899ceb5fda7ed89ffa76a53cd795d33f65 Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Thu, 26 Mar 2020 21:53:35 +0100 Subject: [PATCH] gnrc_dhcpv6_client_6lbr: disable router advertisements on upstream interface We don't want to advertise ourselves as a router to the upstream router. This also leads to the border router ignoring advertisements from the upstream router. --- sys/net/gnrc/application_layer/dhcpv6/client_6lbr.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sys/net/gnrc/application_layer/dhcpv6/client_6lbr.c b/sys/net/gnrc/application_layer/dhcpv6/client_6lbr.c index bc4fa28959..3c95c67e47 100644 --- a/sys/net/gnrc/application_layer/dhcpv6/client_6lbr.c +++ b/sys/net/gnrc/application_layer/dhcpv6/client_6lbr.c @@ -20,6 +20,7 @@ #include "net/dhcpv6/client.h" #include "net/ipv6/addr.h" #include "net/gnrc.h" +#include "net/gnrc/ipv6/nib.h" #include "net/gnrc/ipv6/nib/ft.h" #include "net/gnrc/netif/internal.h" @@ -85,6 +86,15 @@ static void _configure_upstream_netif(gnrc_netif_t *upstream_netif) addr.u8[15] = 2; gnrc_netif_ipv6_addr_add(upstream_netif, &addr, 64, 0); } + + /* Disable router advertisements on upstream interface. With this, the border + * router + * 1. Does not confuse the upstream router to add the border router to its + * default router list and + * 2. Solicits upstream Router Advertisements quicker to auto-configure its + * upstream global address. + */ + gnrc_ipv6_nib_change_rtr_adv_iface(upstream_netif, false); } /**