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:
parent
f3150120f7
commit
8966c14f60
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user