Skip to content

Commit

Permalink
Merge #19855
Browse files Browse the repository at this point in the history
19855: gnrc_static: fix static PID assignment r=benpicco a=benpicco



Co-authored-by: Benjamin Valentin <benjamin.valentin@bht-berlin.de>
  • Loading branch information
bors[bot] and benpicco authored Aug 2, 2023
2 parents 576731c + ae28f11 commit a89fbd0
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,16 +119,16 @@ void auto_init_gnrc_ipv6_static_addr(void)
if (gnrc_netif_highlander() || gnrc_netif_numof() == 1) {
upstream = gnrc_netif_iter(NULL);

if (IS_ACTIVE(CONFIG_GNRC_IPV6_STATIC_ADDR_UPSTREAM)) {
if (CONFIG_GNRC_IPV6_STATIC_ADDR_UPSTREAM) {
assert(upstream->pid == CONFIG_GNRC_IPV6_STATIC_ADDR_UPSTREAM);
}
} else {

if (IS_ACTIVE(CONFIG_GNRC_IPV6_STATIC_ADDR_UPSTREAM)) {
if (CONFIG_GNRC_IPV6_STATIC_ADDR_UPSTREAM) {
upstream = gnrc_netif_get_by_pid(CONFIG_GNRC_IPV6_STATIC_ADDR_UPSTREAM);
}

if (IS_ACTIVE(CONFIG_GNRC_IPV6_STATIC_ADDR_DOWNSTREAM)) {
if (CONFIG_GNRC_IPV6_STATIC_ADDR_DOWNSTREAM) {
downstream = gnrc_netif_get_by_pid(CONFIG_GNRC_IPV6_STATIC_ADDR_DOWNSTREAM);
}

Expand Down

0 comments on commit a89fbd0

Please sign in to comment.