diff options
author | David Lamparter <equinox@diac24.net> | 2010-02-03 20:05:09 +0100 |
---|---|---|
committer | David Lamparter <equinox@diac24.net> | 2010-02-04 02:52:32 +0100 |
commit | 85e53d51f723112b44075c658431d9700facd4c0 (patch) | |
tree | 9caa82e27309a1690d8c55e3bf740fac92ecd8f9 /zebra/if_ioctl_solaris.c | |
parent | 316ef35ac30edcd56be22a551897f47ebeb91b29 (diff) | |
download | quagga-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/if_ioctl_solaris.c')
-rw-r--r-- | zebra/if_ioctl_solaris.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/if_ioctl_solaris.c b/zebra/if_ioctl_solaris.c index 86fcc484..736232e8 100644 --- a/zebra/if_ioctl_solaris.c +++ b/zebra/if_ioctl_solaris.c @@ -327,7 +327,7 @@ if_get_addr (struct interface *ifp, struct sockaddr *addr, const char *label) /* Set address to the interface. */ if (af == AF_INET) connected_add_ipv4 (ifp, flags, &SIN (addr)->sin_addr, prefixlen, - (struct in_addr *) dest_pnt, label, 0); + (struct in_addr *) dest_pnt, label, 0, 0); #ifdef HAVE_IPV6 else if (af == AF_INET6) connected_add_ipv6 (ifp, flags, &SIN6 (addr)->sin6_addr, prefixlen, |