[PATCH] Support for alternate FIFO for sasyncd(8)

2018-10-28 Thread Bartosz Kuźma
Hello, I'm using pair of OpenBSD routers with several isakmpd daemons running in different rdomains synchronizing SA database with sasyncd. Currently sasyncd works only with default isakmpd FIFO path. The following patch will fix this issue: Index: monitor.c ==

use llprio for gre and eoip keepalives

2018-10-28 Thread David Gwynne
This follows the example set by pppoe and uses the interfaces llprio setting to determine the value of the tos in keepalive packets. My understanding is that there are 8 precedence or class selector levels in IP packets, which correlates quite nicely with the 8 prio levels we carry around on mbufs

Re: diff: Fix send(2) EACCES mistake

2018-10-28 Thread Jason McIntyre
On Sun, Oct 28, 2018 at 09:40:33PM +0100, Jan Klemkow wrote: > Hi, > > Unlike the manpage saids or one might think , sendto(2) sets errno to > EHOSTUNREACH instead of EACCES in cases of blocking by pf(4) or not > enabled broadcasts. Finally I ran into both cases and think, its time > to fix this

Re: NTPd server using DVB-T as clocksource

2018-10-28 Thread Lars Schotte
Well, I know that OpenBSD currently has no support for DVB-T but Linux does, so I would run that RaspberryPi with Linux. However, the question would be how to pair its output with OpenNTPd or NTPd. On Sun, 28 Oct 2018 14:22:54 -0700 Chris Cappuccio wrote: > > In OpenBSD, you would write a kernel

Re: unveil ospfd's parent proc

2018-10-28 Thread Remi Locherer
On Sun, Oct 28, 2018 at 03:58:53PM +0100, Florian Obser wrote: > Sorry, I'm on a phone. The diff context looks like the control FD is already > open at this point. Does ospfd later re-open it? > No it does not. It deletes the control socket during shutdown. > On October 27, 2018 11:25:58 PM GM

Re: NTPd server using DVB-T as clocksource

2018-10-28 Thread Chris Cappuccio
Lars Schotte [l...@gustik.eu] wrote: > > Now, I do not like all this, that's why I ordered > vk-172 gmouse g-mouse USB GPS/GLONASS USB over amazon > and hope I can use that in combination with some Raspberry PI as NTPd > clocksource, as I saw some ppl doing. > > But that is only one clocksource,

diff: Fix send(2) EACCES mistake

2018-10-28 Thread Jan Klemkow
Hi, Unlike the manpage saids or one might think , sendto(2) sets errno to EHOSTUNREACH instead of EACCES in cases of blocking by pf(4) or not enabled broadcasts. Finally I ran into both cases and think, its time to fix this issue. The diff suggests a new explanation that should cover all error c

ksh: fc -s and SIGINT

2018-10-28 Thread Anton Lindqvist
Hi, Bug reported by miod@, how to reproduce: $ command -v r alias r='fc -s' $ sleep 5 $ r sleep ^C # abort sleep before finishing $ r sleep ksh: fc: history function called recursively The c_fc() function has some internal state used to prevent recursive invocations that gets out of

Re: unveil ospfd's parent proc

2018-10-28 Thread Remi Locherer
On Sun, Oct 28, 2018 at 07:24:23PM +0100, Sebastian Benoit wrote: > Ricardo Mestre(ser...@helheim.mooo.com) on 2018.10.28 17:26:24 +: > > Correct, and I'd go even further by not unveiling the socket at all. A few > > weeks ago I removed the logic of unlinking the socket when the program > > st

Re: unveil ospfd's parent proc

2018-10-28 Thread Ricardo Mestre
Not all daemons have the same behaviour, so if this is still used then Remi's diff of course makes more sense. On 19:24 Sun 28 Oct , Sebastian Benoit wrote: > Ricardo Mestre(ser...@helheim.mooo.com) on 2018.10.28 17:26:24 +: > in ospfd, ospf6d (and hopefully soon bgpd) we make sure the dae

Re: unveil ospfd's parent proc

2018-10-28 Thread Remi Locherer
On Sun, Oct 28, 2018 at 05:26:24PM +, Ricardo Mestre wrote: > Correct, and I'd go even further by not unveiling the socket at all. A few > weeks ago I removed the logic of unlinking the socket when the program stops, > for a few daemons, but left untouched the ones that don't have the main > p

Re: unveil ospfd's parent proc

2018-10-28 Thread Sebastian Benoit
Ricardo Mestre(ser...@helheim.mooo.com) on 2018.10.28 17:26:24 +: > Correct, and I'd go even further by not unveiling the socket at all. A few > weeks ago I removed the logic of unlinking the socket when the program stops, > for a few daemons, but left untouched the ones that don't have the mai

Re: unveil ospfd's parent proc

2018-10-28 Thread Ricardo Mestre
Correct, and I'd go even further by not unveiling the socket at all. A few weeks ago I removed the logic of unlinking the socket when the program stops, for a few daemons, but left untouched the ones that don't have the main process pledged since it wouldn't make much difference. If we want to go

NTPd server using DVB-T as clocksource

2018-10-28 Thread Lars Schotte
Hi folks, SHORT VERSION: someone knows anything about using DVB-T as a clocksource for NTPd? SOME BACKGROUND: currently I am syncing my (OpenBSD)router's clock over NTP and this is then the NTP server for the whole network. Of course this has a little disadvantage that router being EdgeRouterLi

Re: unveil ospfd's parent proc

2018-10-28 Thread Florian Obser
Sorry, I'm on a phone. The diff context looks like the control FD is already open at this point. Does ospfd later re-open it? On October 27, 2018 11:25:58 PM GMT+02:00, Remi Locherer wrote: >On Fri, Oct 26, 2018 at 10:19:01AM -0600, Theo de Raadt wrote: >> Remi Locherer wrote: >> >> > On Fri

Re: inteldrm(4): uvm write-combining support

2018-10-28 Thread Jan Klemkow
On Sat, Oct 27, 2018 at 12:31:48PM +0200, Mark Kettenis wrote: > > Date: Sat, 27 Oct 2018 17:16:57 +1100 > > From: Jonathan Gray > > > > On Fri, Oct 26, 2018 at 09:47:51PM +0200, Mark Kettenis wrote: > > > Diff below adds support to uvm to create wtite-combining mappings and > > > uses this to im

Re: user land system spinning time

2018-10-28 Thread Alexander Bluhm
On Sat, Oct 27, 2018 at 02:08:24PM -0700, Chris Bennett wrote: > Did this change make it into 6.4 release? Yes. > I have had timer problems for a good while. This is not about timer. When you call time(1) on command line for a process, it affects the value that is shown as system time. bluhm

Re: fix route-collector mode in bgpd

2018-10-28 Thread Sebastian Benoit
Claudio Jeker(cje...@diehard.n-r-g.com) on 2018.10.28 15:07:47 +0100: > Since a long while 'route-collector yes' did not work correctly anymore. > The problem is that the RDE is too strict when it comes to handle the > flag. While it is not possible to turn the mode off it has to be possible > to e

fix route-collector mode in bgpd

2018-10-28 Thread Claudio Jeker
Since a long while 'route-collector yes' did not work correctly anymore. The problem is that the RDE is too strict when it comes to handle the flag. While it is not possible to turn the mode off it has to be possible to enable it since the initial config is reloaded as well. This diff changes the b

Re: user land system spinning time

2018-10-28 Thread Chris Bennett
Slipped by me last night. My clock is also affected by this. I need to update the time constantly to keep my clock correct. During a day's use, the clock may end up 10 minutes wrong or more. This is irrelevant to setting the timer to acpihpet0 or not. Just reading my email has my clock wrong by abo

Re: unveil ospfd's parent proc

2018-10-28 Thread Theo de Raadt
Sebastian Benoit wrote: > Remi Locherer(remi.loche...@relo.ch) on 2018.10.27 23:25:58 +0200: > > On Fri, Oct 26, 2018 at 10:19:01AM -0600, Theo de Raadt wrote: > > > Remi Locherer wrote: > > > > > > > On Fri, Oct 26, 2018 at 06:01:40PM +0200, Florian Obser wrote: > > > > > This breaks usage of

Re: unveil ospfd's parent proc

2018-10-28 Thread Sebastian Benoit
Remi Locherer(remi.loche...@relo.ch) on 2018.10.27 23:25:58 +0200: > On Fri, Oct 26, 2018 at 10:19:01AM -0600, Theo de Raadt wrote: > > Remi Locherer wrote: > > > > > On Fri, Oct 26, 2018 at 06:01:40PM +0200, Florian Obser wrote: > > > > This breaks usage of the "include" keyword. Something that

Re: bgpd: replace some more walkers with rib_dump

2018-10-28 Thread Claudio Jeker
On Thu, Oct 25, 2018 at 08:51:30AM +0200, Claudio Jeker wrote: > Next step on my quest to make the RIB code better. > This changes the following things: > - network_flush is now using rib_dump_new to walk the Adj-RIB-In and > remove all dynamically added announcements > - peer_flush got generaliz