]> 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>
Sat, 10 May 2025 14:56:27 +0000 (16:56 +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 75ed9ef7c7519e2539d6f99a1455b405394fdd1a..8e6eb60c3ee98f9784af016af0b80becfb28d5c6 100644 (file)
@@ -1864,8 +1864,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;