Re: malloc: simplify "not my pool" lock dance

2018-12-09 Thread Florian Obser
This looks correct, OK florian btw. I had some trouble fining getpool(), OK for the style(9) fix? diff --git malloc.c malloc.c index d5a651c7dea..b30ee820cf1 100644 --- malloc.c +++ malloc.c @@ -260,8 +260,8 @@ hash(void *p) return sum; } -static inline -struct dir_info *getpool(void)

Re: libpcap: add basic MPLS support

2018-12-09 Thread Claudio Jeker
On Sat, Dec 08, 2018 at 10:48:37AM +0100, Denis Fondras wrote: > Add basic MPLS support in libpcap. > > Index: gencode.c > === > RCS file: /cvs/src/lib/libpcap/gencode.c,v > retrieving revision 1.51 > diff -u -p -r1.51 gencode.c >

Re: change reboot behaviour in vmd

2018-12-09 Thread Claudio Jeker
On Thu, Dec 06, 2018 at 10:33:24AM +0100, Claudio Jeker wrote: > So doing autoinstall with -B net is great but one thing I was missing is > changing the reboot behaviour of vmd to exit at a guest reboot. > I came up with this minimal diff that does the trick for me. Now maybe it > would be better

Re: change reboot behaviour in vmd

2018-12-09 Thread Reyk Floeter
Sure, the bootdevice trick makes sense. Another trick could probably be to try to switch to the hard disk after first boot (install) but this would make the logic and config a bit ugly. OK for the diff below. The only thing that I’m a bit concerned about is that -B might turn a bit into a

Re: change reboot behaviour in vmd

2018-12-09 Thread Claudio Jeker
On Sun, Dec 09, 2018 at 01:54:50PM +0100, Reyk Floeter wrote: > Sure, the bootdevice trick makes sense. Another trick could probably be to > try to switch to the hard disk after first boot (install) but this would make > the logic and config a bit ugly. > > OK for the diff below. > > The only

carp though bridge with vmd

2018-12-09 Thread Mischa
Hi All, Is there a way to get carp working through a bridge? I am currently testing to see whether I can have 2 vmd VMs on different hosts use carp between them. The current state that I am currently at is, both VMs are master. Setup on both hosts is the same, bridge1 with em0 as interface. #

ksh mail check

2018-12-09 Thread Ted Unangst
if MAIL is unset, we can short circuit the check a little bit. Index: mail.c === RCS file: /cvs/src/bin/ksh/mail.c,v retrieving revision 1.24 diff -u -p -r1.24 mail.c --- mail.c 25 Jun 2018 15:22:30 - 1.24 +++ mail.c

pwd_check tweak

2018-12-09 Thread Ted Unangst
These patterns try to detect a1a1a1 style passwords. By making the regex a bit more flexible we can just use one. Also now catches mMmMmM fwiw. Index: pwd_check.c === RCS file: /cvs/src/usr.bin/passwd/pwd_check.c,v retrieving

Re: SGI O2 mec(4) cold boot issue (and workaround)

2018-12-09 Thread Visa Hankala
On Sat, Dec 08, 2018 at 05:32:41PM +, Miod Vallat wrote: > I have noticed, for a while, that my O2 systems were horribly slow > during installs or upgrades, when fetching sets from the network (28 > *minutes* to fetch base64.tgz). > > At first, I thought this was a bsd.rd specific bug, but

Re: pwd_check tweak

2018-12-09 Thread Sebastien Marie
On Sun, Dec 09, 2018 at 09:14:38PM -0500, Ted Unangst wrote: > These patterns try to detect a1a1a1 style passwords. By making the regex a bit > more flexible we can just use one. Also now catches mMmMmM fwiw. it will also catches any password composed of only letters and digits from 2 to 8 chars

PF should honor deprecated IPv6 addresses

2018-12-09 Thread Alexandr Nedvedicky
Hello, the issue has been brought up by claudio@ off-list: > I have this rule in my pf.conf: > > match out on egress received-on tap nat-to (egress) > > Now if I ping6 www.google.com from the VM it should rewrite the IPv6 > address to the one on my egress and all is good but it seems

Re: option kcov + GENERIC.MP -> silent crash

2018-12-09 Thread Anton Lindqvist
On Wed, Dec 05, 2018 at 10:03:38PM +0100, Anton Lindqvist wrote: > On Sat, Dec 01, 2018 at 04:34:57PM +0100, Anton Lindqvist wrote: > > On Tue, Nov 27, 2018 at 05:52:15PM -0800, Greg Steuck wrote: > > > I booted the patched kernel and it seems to have gone farther and I > > > believe > > >

request for testing: patch for boot loader out of mem

2018-12-09 Thread Otto Moerbeek
Hi, the bootloader uses a very simple allocator for dynamic memory. It maintains a list of free allocations. If it needs a block, it searches the freelist and returns the smallest allocation that fits. Allocation patterns like this (starting with an empty freelist) alloc(big) free(big)

Re: carp though bridge with vmd

2018-12-09 Thread David Gwynne
Is there a shared ethernet network between the bridges on each host? > On 10 Dec 2018, at 01:56, Mischa wrote: > > Hi All, > > Is there a way to get carp working through a bridge? > I am currently testing to see whether I can have 2 vmd VMs on different hosts > use carp between them. > The

Re: sys/net/pfvar.h: zap duplicate signatures

2018-12-09 Thread Jeremie Courreges-Anglas
On Sat, Dec 08 2018, Klemens Nanni wrote: > These are identical (see increased context) since introduction: [...] > OK to remove the duplicate signatures under _KERNEL for clarity? Sure. -- jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF DDCC 0DFA 74AE 1524 E7EE