Re: pf: use proper interface for route-to when it is used with sticky-address

2019-07-01 Thread Alexandr Nedvedicky
Hello, On Mon, Jul 01, 2019 at 09:11:28PM +0900, YASUOKA Masahiko wrote: > Hi, > > "route-to" is used with the interface used for the next hop. But if > it is used with a source address track (sticky-address), it sometimes > output the packet to wrong interface. > > Example: > > pass in

Softraid bootloader size allowance

2019-07-01 Thread Chris Ross
Hey there. I thought to put this here, instead of openbsd-misc, as it's a suggestion more than a question I think. Let me know if a more discussion mailer would be better. Following troubles I've been having getting a sparc64 to boot from a softraid mirror

smtpd replace mkstemp+fdopen with tmpfile

2019-07-01 Thread Martijn van Duren
No functional change intended, just simplify the code. OK? martijn@ Index: enqueue.c === RCS file: /cvs/src/usr.sbin/smtpd/enqueue.c,v retrieving revision 1.115 diff -u -p -r1.115 enqueue.c --- enqueue.c 31 May 2018 21:06:12

Re: mg(1) M-x blink-and-insert

2019-07-01 Thread Mark Lumsden
I totally forgot about the instance where blink-and-insert can be called from the mg startup file. My previous diff broke that instance. So this diff reverts my change but adds a man page line to blink-and-insert (and comment). ok? Index: def.h

dead code: remove timespecfix()

2019-07-01 Thread Scott Cheloha
With the recently committed kern_event.c,v1.105 there aren't any timespecfix() callers left. ok? Index: kern/kern_time.c === RCS file: /cvs/src/sys/kern/kern_time.c,v retrieving revision 1.119 diff -u -p -r1.119 kern_time.c ---

Re: OpenBSD: patch for bridge(4) to fix incoming interface for pf(4)

2019-07-01 Thread Eygene Ryabinkin
Mon, Jun 24, 2019 at 11:43:15AM +0300, Eygene Ryabinkin wrote: > Mon, Jun 17, 2019 at 04:15:10PM +0300, Eygene Ryabinkin wrote: > > Sun, Jun 09, 2019 at 11:44:10AM -0300, Martin Pieuchot wrote: > > > In that case would it makes sense to apply the so-called unicast > > > check to `ifp', the

Re: port NetBSD libc tests

2019-07-01 Thread Martin Pieuchot
On 01/07/19(Mon) 09:05, Moritz Buhl wrote: > Hi, > > I started porting some NetBSD libc tests. They use atf which is a lot more > than necessary for most tests. > Attached is a passing test file for access(2). I would continue the same > way with the other tests if people say it is ok to work

pf: use proper interface for route-to when it is used with sticky-address

2019-07-01 Thread YASUOKA Masahiko
Hi, "route-to" is used with the interface used for the next hop. But if it is used with a source address track (sticky-address), it sometimes output the packet to wrong interface. Example: pass in quick inet proto tcp from any to 192.168.0.10 port 80 \ keep state (sloppy) route-to

Re: TSC synchronization on MP machines

2019-07-01 Thread Mark Kettenis
> Date: Thu, 27 Jun 2019 15:08:00 +0300 > From: Paul Irofti > > Hi, > > Here is an initial diff, adapted from NetBSD, that synchronizes TSC > clocks across cores. > > CPU0 is the reference clock and all others are skewed. During CPU > initialization the clocks synchronize by keeping a registry

Re: pf: keep src track for route-to while its state exists

2019-07-01 Thread Alexandr Nedvedicky
Hello, On Mon, Jul 01, 2019 at 02:45:12PM +0900, YASUOKA Masahiko wrote: > Hi, > > The source address tracking (sticky-address) is kept dulring there are > states which refer it. This is mentioned in pf.conf(5). This is true > for translation(nat-to, rdr-to) but it was not true for >

Re: smtpd fix proc filter chaining with proceed

2019-07-01 Thread Gilles Chehade
On Sun, Jun 30, 2019 at 04:54:28PM +0200, Martijn van Duren wrote: > Found by Mischa Peters by running some experimental code of mine. > > When chaining two proc-based filters together the second proc will not > get its parameter correctly, since lka_filter_process_response won't get > a

port NetBSD libc tests

2019-07-01 Thread Moritz Buhl
Hi, I started porting some NetBSD libc tests. They use atf which is a lot more than necessary for most tests. Attached is a passing test file for access(2). I would continue the same way with the other tests if people say it is ok to work around atf this way. I only changed two includes in

problems with libm

2019-07-01 Thread Moritz Buhl
Hi, while testing arm hardware on OpenBSD I noticed that some floating point operations cause failures of other tests. In fact the current libm is incorrect according to the ISO C Std Annex G. I found this out after porting some FreeBSD lib msun tests. Many edge cases for complex floating point

Re: fix for spinning bgpd session engine

2019-07-01 Thread Claudio Jeker
On Sun, Jun 30, 2019 at 12:05:15PM +0200, Sebastian Benoit wrote: > Claudio Jeker(cje...@diehard.n-r-g.com) on 2019.06.28 09:44:35 +0200: > > It is possible that a session is going down while peer->rpending (the flag > > indicating that there is more data to process) is set. If that is > >