rpki-client: better cleanup code

2021-03-31 Thread Claudio Jeker
The current code to cleanup the repository after validation did not cleanup directories and also skipped any repo directory that is no referenced. Adjust the cleanup code to fix these two issues. This uses the fact that the cache directory now only contains 2 directories rsync & ta. Thanks to the

Re: athn(4): switch Tx rate control to RA

2021-03-31 Thread Stefan Sperling
On Tue, Mar 30, 2021 at 11:06:43PM -0400, Scott Bennett wrote: > However, my laptop with AR9287 was noticeably worse with this diff (dropped > pings, stuttering keystrokes in interactive ssh session, estimated 20 > minutes to scp(1) a 20M file...). The combination of apu2 with diff and my > laptop

Re: rpki-client: better cleanup code

2021-03-31 Thread Claudio Jeker
On Wed, Mar 31, 2021 at 12:40:57PM +0200, Claudio Jeker wrote: > The current code to cleanup the repository after validation did not > cleanup directories and also skipped any repo directory that is no > referenced. > > Adjust the cleanup code to fix these two issues. This uses the fact that >

Re: cwfg: Use meaningful alert level, track apm's battery state better

2021-03-31 Thread Patrick Wildt
Am Mon, Mar 29, 2021 at 07:16:18AM +0200 schrieb Klemens Nanni: > The datasheet says the hardware's default State-Of-Charge threshold is > three percent, i.e. the gauge pulls down the pin to logic low at 3% > remaining battery life. > > My Pinebook Pro's fuel gauge actually shows an alert level

Re: rpki-client: better cleanup code

2021-03-31 Thread Claudio Jeker
On Wed, Mar 31, 2021 at 01:41:36PM +0200, Claudio Jeker wrote: > On Wed, Mar 31, 2021 at 12:40:57PM +0200, Claudio Jeker wrote: > > The current code to cleanup the repository after validation did not > > cleanup directories and also skipped any repo directory that is no > > referenced. > > > >

rpki-client move encoding functions into own file

2021-03-31 Thread Claudio Jeker
As mentioned before move the base64 and hex encoding / decoding functions into one file. This is just minor cleanup. -- :wq Claudio PS: I know this will break regress and I will fix that once this goes in. Index: Makefile === RCS

Re: athn(4): switch Tx rate control to RA

2021-03-31 Thread Mikolaj Kucharski
On Tue, Mar 23, 2021 at 07:47:08PM +, Mikolaj Kucharski wrote: > On Tue, Mar 23, 2021 at 07:06:33PM +, Mikolaj Kucharski wrote: > > On Tue, Mar 23, 2021 at 06:01:27PM +0100, Stefan Sperling wrote: > > > This switches athn(4) to the new RA Tx rate adaptation module. > > > Tests on athn(4)

Re: athn(4): switch Tx rate control to RA

2021-03-31 Thread Mikolaj Kucharski
On Wed, Mar 31, 2021 at 11:24:19AM +, Mikolaj Kucharski wrote: > On Tue, Mar 23, 2021 at 07:47:08PM +, Mikolaj Kucharski wrote: > > On Tue, Mar 23, 2021 at 07:06:33PM +, Mikolaj Kucharski wrote: > > > On Tue, Mar 23, 2021 at 06:01:27PM +0100, Stefan Sperling wrote: > > > > This

Re: cwfg: Use meaningful alert level, track apm's battery state better

2021-03-31 Thread Klemens Nanni
On Wed, Mar 31, 2021 at 01:35:12PM +0200, Patrick Wildt wrote: > If there's no alert-level property, then maybe we should just remove it. > Then you could hard code a value for "below will be critical", like you > now do with the 50%? This makes sense, I did not remove it when writing the diff due

Re: Mention -N to shutdown(2) network socket after EOF in man nc(1)

2021-03-31 Thread Jason McIntyre
On Tue, Mar 30, 2021 at 02:48:17AM +0200, Robert Scheck wrote: > Jakub Jelen reported at Fedora that "nc -l 8080" (terminal #1) and "echo > XXX | nc localhost 8080" (terminal #2) keeps hanging both client and server > after reading the EOF, even the last sentence of "CLIENT/SERVER MODEL" in > the

Re: smtpd: trace and vfprintf %s NULL

2021-03-31 Thread Eric Faurot
Any objection or ok? On Sat, Mar 27, 2021 at 12:52:11PM +0100, Eric Faurot wrote: > Hello. > > I get reports from people seeing "vfprintf %s NULL" in their logs > recently. The problem is in a function that should be fixed, > but that function is only expected to but used for debug traces. > >

rpki-client use setproctitle(3)

2021-03-31 Thread Claudio Jeker
It is time to use setproctitle() in rpki-client. Right now there are three processes, soon it will be four. This should help identify the different processes. I did not change the proc title of the main process to keep the arguments. -- :wq Claudio Index: main.c

Re: iwm(4) A-MSDU support

2021-03-31 Thread Uwe Werler
On 29 Mar 19:27, Stefan Sperling wrote: > This patch attempts to add support for receiving A-MSDUs to iwm(4). > If you are using iwm(4) then please run with this patch and let me > know if it causes regressions. Thanks! > > ACHTUNG: This patch breaks iwx(4)! Don't use it there! For this reason, >

Re: rpki-client use setproctitle(3)

2021-03-31 Thread Theo de Raadt
Absolutely -- this allows me to skip a few steps when tracing. Claudio Jeker wrote: > It is time to use setproctitle() in rpki-client. > Right now there are three processes, soon it will be four. > This should help identify the different processes. > I did not change the proc title of the main

Re: athn(4): switch Tx rate control to RA

2021-03-31 Thread Uwe Werler
On 23 Mar 18:01, Stefan Sperling wrote: > This switches athn(4) to the new RA Tx rate adaptation module. > Tests on athn(4) PCI devices are welcome. > USB devices don't need to be tested in this case Tx rate adaptation > is taken care of by firmware. > > I could only test on AR9285 so far, but

Re: rpki-client move encoding functions into own file

2021-03-31 Thread Theo Buehler
On Wed, Mar 31, 2021 at 01:13:08PM +0200, Claudio Jeker wrote: > As mentioned before move the base64 and hex encoding / decoding functions > into one file. This is just minor cleanup. ok tb > > -- > :wq Claudio > > PS: I know this will break regress and I will fix that once this goes in. > >

iscsid issues with Synology NAS

2021-03-31 Thread David Alten
Hello, I’m having issues getting iscsid to work with my Synology NAS. The first issue was that the NAS was returning an error code. Turns out it didn’t like not  missing the default SessionType=Normal. The second issue was that the login sequence never comleted. It seems we keep hardcoding

Re: iscsid issues with Synology NAS

2021-03-31 Thread Bruno Flueckiger
On 31.03., David Alten wrote: > Hello, > > I???m having issues getting iscsid to work with my Synology NAS. > > The first issue was that the NAS was returning an error code. Turns out > it didn???t like not?? missing the default SessionType=Normal. > > The second issue was that the login sequence