From 85e53d51f723112b44075c658431d9700facd4c0 Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Wed, 3 Feb 2010 20:05:09 +0100 Subject: 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. --- lib/if.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/if.h') diff --git a/lib/if.h b/lib/if.h index 28faddf3..1b29f470 100644 --- a/lib/if.h +++ b/lib/if.h @@ -175,6 +175,9 @@ struct connected /* scope value, Linux only */ unsigned scope; + + /* address preference, NetBSD >=4.0 with option IPSRCSEL, in_getifa(9) */ + int preference; }; /* Does the destination field contain a peer address? */ -- cgit v1.2.3