summaryrefslogtreecommitdiffstats
path: root/zebra/rt_netlink.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2010-02-03 20:05:09 +0100
committerDavid Lamparter <equinox@diac24.net>2010-02-04 02:52:32 +0100
commit85e53d51f723112b44075c658431d9700facd4c0 (patch)
tree9caa82e27309a1690d8c55e3bf740fac92ecd8f9 /zebra/rt_netlink.c
parent316ef35ac30edcd56be22a551897f47ebeb91b29 (diff)
downloadquagga-85e53d51f723112b44075c658431d9700facd4c0.tar.bz2
quagga-85e53d51f723112b44075c658431d9700facd4c0.tar.xz
zebra: NetBSD: get IPSRCSEL preference value from kernel
fetch the address preference value from the kernel through SIOCGIFADDRPREF and pass it to quagga through connected_add_ipv4, which stores it in struct connected->preference. IPSRCSEL is a NetBSD kernel option(4), documented in in_getifa(9) and is available since NetBSD 4.0 but not enabled in default GENERIC.
Diffstat (limited to 'zebra/rt_netlink.c')
-rw-r--r--zebra/rt_netlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/rt_netlink.c b/zebra/rt_netlink.c
index 92ce8d69..d25543ff 100644
--- a/zebra/rt_netlink.c
+++ b/zebra/rt_netlink.c
@@ -617,7 +617,7 @@ netlink_interface_addr (struct sockaddr_nl *snl, struct nlmsghdr *h)
if (h->nlmsg_type == RTM_NEWADDR)
connected_add_ipv4 (ifp, flags,
(struct in_addr *) addr, ifa->ifa_prefixlen,
- (struct in_addr *) broad, label, ifa->ifa_scope);
+ (struct in_addr *) broad, label, ifa->ifa_scope, 0);
else
connected_delete_ipv4 (ifp, flags,
(struct in_addr *) addr, ifa->ifa_prefixlen,