Niels, On Wed, Mar 04, 2015 at 09:06:11PM +0100, Niels Baggesen wrote: N> Den 04-03-2015 kl. 10:17 skrev Gleb Smirnoff: N> > I see, you use { CTL_NET, PF_ROUTE, 0, 0, NET_RT_IFLIST, 0 }; N> > N> > I'd suggest to use getifaddrs(3), it uses more modern sysctl N> > NET_RT_IFLISTL, note the L at end. And the library function N> > takes the burden of parsing the stuff. N> N> That looks interesting. I will give it try:-)
Thanks a lot! You can see example usage in the URLs that I posted in the first email in this thread. If you move to getifaddrs(3), that might make our life much easier in future. NET_RT_IFLIST is considered somewhat internal API, between kernel and libc. A year ago, we did run over all software in FreeBSD ports collection to check whether any port uses it, and look like a year ago no one did: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=183357 N> > Is it possible to disable compilation of deprecated IPV6-MIB implementation N> > at compile time? It could be that would be just the right solution for N> > future FreeBSD versions, instead of putting yet another ifdef into this N> > awful pile of ifdefs, that I see in ipv6.c :) N> N> ./configure --with-out-mib-modules=mibII/ipv6 N> N> should do the trick Will try that, thanks! -- Totus tuus, Glebius. ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders