]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Netlink: Fix BSD build error
authorKaterina Kubecova <katerina.kubecova@nic.cz>
Tue, 22 Apr 2025 08:41:06 +0000 (10:41 +0200)
committerMaria Matejka <mq@ucw.cz>
Tue, 6 May 2025 16:01:26 +0000 (18:01 +0200)
Due to missing autotests, we forgot to catch this place in Netlink code
which builds only for FreeBSD and not for Linux.

Caused by incomplete merge from master.

sysdep/linux/netlink.c

index b6d800681f2fe9b8e63ac1622a23f77978bd625f..e6fb06581c17d7c3e46ced17fcea5f87d5938377 100644 (file)
@@ -1870,8 +1870,8 @@ nl_parse_route(struct nl_parse_state *s, struct nlmsghdr *h)
            return;
 
 #ifdef CONFIG_ASSUME_ONLINK
-         if (krt_assume_onlink(ra->nh.iface, ipa_is_ip6(ra->nh.gw)))
-           ra->nh.flags |= RNF_ONLINK;
+         if (krt_assume_onlink(nhad->nh.iface, ipa_is_ip6(nhad->nh.gw)))
+           nhad->nh.flags |= RNF_ONLINK;
 #endif
 
          neighbor *nbr;