Re: Switch OpenBSD manuals to DocBook

2014-04-07 Thread Jona Joachim
On 2014-04-02, Damien Miller wrote: > On Tue, 1 Apr 2014, Christian Weisgerber wrote: > >> On 2014-04-01, Theo de Raadt wrote: >> >> > Another approach is to extend the usage() in every program so that it >> > provides more information. >> >> Just embed the whole man page, as in curl -M. > > Pu

Re: snmpd: support for ipNetToMediaTable (ARP table exporting)

2014-04-07 Thread Mike Belopuhov
a bit of an update, mainly style changes. one functional change: don't rely on rtm_rmx.rmx_expire to set the F_STATIC flag as rt_getmetrics is not called consistenly (only with RTM_GETs) and besides RTF_STATIC flag is already present for static ARP entries. http://www.vantronix.net/~mike/snmpd-ar

Re: arp: notify userland when arp entry is gone

2014-04-07 Thread Martin Pieuchot
On 07/04/14(Mon) 12:49, Mike Belopuhov wrote: > Hi, > > I need this one bit for my snmpd diff as well. rtdeletemsg does > rtrequest1 and rt_missmsg in one go with some magic requried for > that to happen. Makes sense to me, plus I like the fact that you're removing one custom use of rtrequest1(9

Re: snmpd: support for ipNetToMediaTable (ARP table exporting)

2014-04-07 Thread Mike Belopuhov
On Mon, Apr 07, 2014 at 16:21 +0200, Bret Lambert wrote: > On Mon, Apr 07, 2014 at 04:04:24PM +0200, Mike Belopuhov wrote: > > +struct kif_arp * > > +karp_find(struct sockaddr *sa, u_short ifindex) > > +{ > > + struct kif_node *kn; > > + struct kif_arp *ka = NULL, s; > > + > >

Re: snmpd: support for ipNetToMediaTable (ARP table exporting)

2014-04-07 Thread Bret Lambert
On Mon, Apr 07, 2014 at 04:04:24PM +0200, Mike Belopuhov wrote: > Hi, > > With some help from blambert@ and thorough testing by sthen@, I was > able to get this working fairly well. There are some rough edges > however, namely the rdomain kludge and the need for an RTM_DELETE > notification, but

snmpd: support for ipNetToMediaTable (ARP table exporting)

2014-04-07 Thread Mike Belopuhov
Hi, With some help from blambert@ and thorough testing by sthen@, I was able to get this working fairly well. There are some rough edges however, namely the rdomain kludge and the need for an RTM_DELETE notification, but apart from that it seems to be doing the right thing. The ARP part of the k

arp: notify userland when arp entry is gone

2014-04-07 Thread Mike Belopuhov
Hi, I need this one bit for my snmpd diff as well. rtdeletemsg does rtrequest1 and rt_missmsg in one go with some magic requried for that to happen. OK? diff --git sys/netinet/if_ether.c sys/netinet/if_ether.c index af3f3cd..548192f 100644 --- sys/netinet/if_ether.c +++ sys/netinet/if_ether.c @