Re: towards mpsafe rtfree(9)

2015-10-22 Thread Bret Lambert
On Thu, Oct 22, 2015 at 07:42:24PM +0200, Martin Pieuchot wrote: > Now that we have a single refcounting mechanism for route entries, I'd > like to use atomic operations and grab the KERNEL_LOCK only if a CPU is > dropping the last reference on an entry. > > Currently this only matters for MPLS.

bgpd data export via snmp

2015-10-06 Thread Bret Lambert
Since it was brought up on misc, there's been some off-list interest in work I did during c2k15 that's timed out with off-list testers. The following diff implements a subset of RFC 4273, with no export of individual route entries, which would be sheer madness over snmp, and for which better tools

Re: Use rtdeletemsg()

2015-01-19 Thread Bret Lambert
On Mon, Jan 19, 2015 at 11:49:53AM +0100, Martin Pieuchot wrote: > Instead of rerolling rtrequest1(RTM_DELETE...) code in various places, > simply use rtdeletemsg() which also notify userland that the route entry > is going away. > > Comments, ok? Seems good at first glance; is it maybe a good id

macppc tester(s) needed

2014-07-11 Thread Bret Lambert
Not having a macppc machine of my own anymore, I am forced to rely on the kindness of strangers. I'm looking specifically for macppc machines with the line abtn at adb? in the dmesg. If you or a loved one owns such a machine, please contact me off-list, as I have a small change to the driver that

Re: Kill unused (cached) routes

2014-07-09 Thread Bret Lambert
On Wed, Jul 09, 2014 at 04:52:06PM +0200, Martin Pieuchot wrote: > While looking at route refcounting issues I found some unused fields... > > Ok to kill them? These appear to have been part of a plan of deep and evil magic; the diff appears okay to me on purely visual inspection, at least. > >

Re: Remove a global variable in ip_input

2014-06-04 Thread Bret Lambert
On Wed, Jun 04, 2014 at 12:30:58PM +0200, Martin Pieuchot wrote: > ok? Seems reasonable enough; are there any alignment issues placing it on the stack? > > Index: netinet/ip_input.c > === > RCS file: /home/ncvs/src/sys/netinet/ip_in

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

Re: PATCH: fix bug in handling genmask

2013-12-28 Thread Bret Lambert
IIRC, I'd talked to both claudio and sthen about removing genmask, as it's unused and slightly nonsensical. Maybe we should just do it, if there are actual bugs lurking therein? On Sat, Dec 28, 2013 at 03:57:04AM +0800, Kieran Devlin wrote: > re-send this patch, loop in claudio@ > > maybe someone

Re: TIMEOUT_INITIALIZER() for src/sys/dev.c to avoid timeout_initialized()

2013-12-09 Thread Bret Lambert
On Mon, Dec 09, 2013 at 10:18:06PM +1000, David Gwynne wrote: > > On 9 Dec 2013, at 10:01 pm, David Gwynne wrote: > > > > > On 9 Dec 2013, at 6:59 pm, Bret Lambert wrote: > > > >> On Mon, Dec 09, 2013 at 01:55:53PM +1000, David Gwynne wrote: &g

Re: TIMEOUT_INITIALIZER() for src/sys/dev.c to avoid timeout_initialized()

2013-12-09 Thread Bret Lambert
On Mon, Dec 09, 2013 at 01:55:53PM +1000, David Gwynne wrote: > this is a demonstration of using TIMEOUT_INITIALIZED(). > > because we know the timeout is always set up correctly, we dont > have to test for it all over the place. > [a bit of snipping...] > - if (timeout_initialized(&rnd_tim

Re: Support for External Random Number Server

2013-11-18 Thread Bret Lambert
On Mon, Nov 18, 2013 at 07:23:55PM +, Hendrickson, Kenneth wrote: > Use Case > > I have several headless computers. Their only source of randomness is from > the network. I also have a hardware true random number generator on another > computer. I would like the headless computers to be a

fix pf counters with match rules

2013-06-21 Thread Bret Lambert
When using match vice pass/block rules when wanting counters, e.g., match in from counters counters were not being updated. reyk@ and I tracked this down to a failure to check the matched rules for the need to increment stats. the following diff fixes that here - Bert Index: pf.c

Re: hack(6) fails to display help files

2011-03-07 Thread Bret Lambert
On Tue, Mar 8, 2011 at 3:07 AM, Simon Nicolussi wrote: > I'm not sure whether anybody still cares about this, but currently it is > not possible to read the help files within hack(6). The patch below does > fix this issue and additionally enables the external parser for viewing > the help files, a

Re: [patch] -H flag for grep.

2011-02-21 Thread Bret Lambert
find / -name my\*balls | xargs grep -e batman -e robocop On Mon, Feb 21, 2011 at 1:34 PM, Pascal Stumpf wrote: > Implement a -H flag for grep, useful for combining e.g. find and grep. > > Can anyone commit it? > > Index: grep.1 > ===

Re: /bsd: splassert: assertwaitok: want -1 have 1

2011-01-19 Thread Bret Lambert
Set kern.splasssert=2 and report the debugging info that ddb gives. On Wed, Jan 19, 2011 at 9:49 AM, Gregory Edigarov wrote: > Hello, > > I have my home system connected via pppoe(4) to a provider and > connection disapears very frequently some once an hour. > Just before connection is gone I alw

Re: Perl patch to fix memory leaks in p5-DBI

2009-10-15 Thread Bret Lambert
On Wed, Oct 14, 2009 at 11:08 PM, Srebrenko Sehic wrote: > Hi, > > I'm not sure this tech@ is appropriate place to post this, but given > that DBI is heavily used by people running any kind of Perl/database > combo on OpenBSD, you might want to know about it. > > It turns out, that in Perl 5.10, D