network interface/address API on FreeBSD

2015-02-27 Thread Gleb Smirnoff
Hi! I'm the guy, who often breaks compilation of net-snmp on FreeBSD, changing layout of kernel structures. And I'm about to change them even more this year. However, I'd like to keep net-snmp working. But it looks like, I won't be able to do that without your help, since patches are about to be

network interface/address API on FreeBSD

2015-03-03 Thread Gleb Smirnoff
Hi! [I'm not subscribed to the list, so please keep me in Cc] I'm the guy, who often breaks compilation of net-snmp on FreeBSD, changing layout of kernel structures. And I'm about to change them even more this year. However, I'd like to keep net-snmp working. But it looks like, I won't be abl

Re: network interface/address API on FreeBSD

2015-03-03 Thread Gleb Smirnoff
On Mon, Mar 02, 2015 at 09:33:30PM +0100, Niels Baggesen wrote: N> Den 27-02-2015 kl. 22:22 skrev Gleb Smirnoff: N> > Now time for net-snmp, which isn't piece of cake. And I'd like N> > to get it done properly, and not to store a patch in FreeBSD port N> > for a

Re: network interface/address API on FreeBSD

2015-03-04 Thread Gleb Smirnoff
On Mon, Mar 02, 2015 at 09:33:30PM +0100, Niels Baggesen wrote: N> Den 27-02-2015 kl. 22:22 skrev Gleb Smirnoff: N> > Now time for net-snmp, which isn't piece of cake. And I'd like N> > to get it done properly, and not to store a patch in FreeBSD port N> > for a

Re: network interface/address API on FreeBSD

2015-03-04 Thread Gleb Smirnoff
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> &g