Skip to content

Commit

Permalink
Merge #19652
Browse files Browse the repository at this point in the history
19652: gnrc_ipv6_nib: set default RIO preference to zero r=fabian18 a=benpicco



Co-authored-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
  • Loading branch information
bors[bot] and benpicco authored May 23, 2023
2 parents 8408d69 + 8966c14 commit 4c27aff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sys/net/gnrc/network_layer/ipv6/nib/_nib-router.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

/*
* Copyright (C) 2021 ML!PA Consulting GmbH
*
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 4c27aff

Please sign in to comment.