1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

gnrc_ipv6_nib: set default RIO preference to zero

Linux will ignore RIOs with preference NONE, so set the preference
to zero instead.
This commit is contained in:
Benjamin Valentin 2023-05-23 12:53:17 +02:00
parent f3150120f7
commit 8966c14f60
2 changed files with 3 additions and 2 deletions

View File

@ -267,7 +267,7 @@ static gnrc_pktsnip_t *_build_final_ext_opts(gnrc_netif_t *netif)
gnrc_pktsnip_t *snip = gnrc_ndp_opt_ri_build(&entry->pfx,
entry->pfx_len,
valid_ltime,
NDP_OPT_RI_FLAGS_PRF_NONE,
NDP_OPT_RI_FLAGS_PRF_ZERO,
ext_opts);
if (snip != NULL) {
ext_opts = snip;

View File

@ -1,3 +1,4 @@
/*
* Copyright (C) 2021 ML!PA Consulting GmbH
*
@ -332,7 +333,7 @@ static bool _remove_old_prefix(gnrc_netif_t *netif,
/* invalidate old prefix in RIO */
tmp = gnrc_ndp_opt_ri_build(&old_pfx, old_pfx_len, 0,
NDP_OPT_RI_FLAGS_PRF_NONE, *ext_opts);
NDP_OPT_RI_FLAGS_PRF_ZERO, *ext_opts);
if (tmp) {
*ext_opts = tmp;
}