Re: New hw.perfpolicy behavior

2021-11-18 Thread Jan Stary
On Nov 10 00:21:59, h...@stare.cz wrote: > On Nov 02 12:30:56, dera...@openbsd.org wrote: > > Paul de Weerd wrote: > > > > > A recent commit by Theo changed the hw.perfpolicy behavior to always > > > run at full speed when AC power is on. This means that my workstation > > > (and servers, once I

Re: cwm: fix invalid KeyCode in configuration

2021-11-18 Thread Jan Stary
On Nov 19 00:01:04, stef...@sdaoden.eu wrote: > Jan Stary wrote in > : > |On Nov 18 20:13:03, h...@stare.cz wrote: > |> On Nov 16 21:33:31, hen...@camandro.org wrote: > |>> I've tried to setup a line like: > |>> bind-key XF86MonBrightnessDown "" > |>> in my .cwmrc and the result was that no k

Re: Retry sleep in poll/select

2021-11-18 Thread Sebastien Marie
On Thu, Nov 18, 2021 at 07:50:01PM -0600, Scott Cheloha wrote: > On Thu, Nov 18, 2021 at 12:30:30PM +0100, Martin Pieuchot wrote: > > On 17/11/21(Wed) 09:51, Scott Cheloha wrote: > > > > On Nov 17, 2021, at 03:22, Martin Pieuchot wrote: > > > > > > > > ???On 16/11/21(Tue) 13:55, Visa Hankala wrot

Re: Retry sleep in poll/select

2021-11-18 Thread Scott Cheloha
On Thu, Nov 18, 2021 at 12:30:30PM +0100, Martin Pieuchot wrote: > On 17/11/21(Wed) 09:51, Scott Cheloha wrote: > > > On Nov 17, 2021, at 03:22, Martin Pieuchot wrote: > > > > > > ???On 16/11/21(Tue) 13:55, Visa Hankala wrote: > > >> Currently, dopselect() and doppoll() call tsleep_nsec() without

Re: make 'set skip on ...' dynamic

2021-11-18 Thread Alexandr Nedvedicky
Hello, it has turned out things are bit more complicated when it comes to interface groups. diff below makes following scenario work for me. we start with etc/pf.conf as follows: # cat /etc/pf.conf set skip on lo set skip on test1 set skip on test2 set

Re: cwm: fix invalid KeyCode in configuration

2021-11-18 Thread Steffen Nurpmeso
Jan Stary wrote in : |On Nov 18 20:13:03, h...@stare.cz wrote: |> On Nov 16 21:33:31, hen...@camandro.org wrote: |>> I've tried to setup a line like: |>> bind-key XF86MonBrightnessDown "" |>> in my .cwmrc and the result was that no key event was sent to my \ |>> windows. |> |> Please excu

Re: cwm: fix invalid KeyCode in configuration

2021-11-18 Thread Jan Stary
On Nov 18 20:13:03, h...@stare.cz wrote: > On Nov 16 21:33:31, hen...@camandro.org wrote: > > I've tried to setup a line like: > > bind-key XF86MonBrightnessDown "" > > in my .cwmrc and the result was that no key event was sent to my windows. > > Please excuse my X ignorance, but shouldn't XF86Mon

Re: cwm: fix invalid KeyCode in configuration

2021-11-18 Thread Jan Stary
On Nov 16 21:33:31, hen...@camandro.org wrote: > I've tried to setup a line like: > bind-key XF86MonBrightnessDown "" > in my .cwmrc and the result was that no key event was sent to my windows. Please excuse my X ignorance, but shouldn't XF86MonBrightnessDown be catched by the X server (to take th

Re: acme-client: use EVP_PKEY_base_id

2021-11-18 Thread Florian Obser
sure, go nuts. On 2021-11-18 17:53 +01, Theo Buehler wrote: > EVP_PKEY will become opaque, so we must stop reaching inside it. As > should be completely evident from the name, EVP_PKEY_type(pkey->type) > is the same as EVP_KEY_base_id(pkey). > > From lib/libcrypto/evp/p_lib.c: > > int > EVP_PKEY_b

acme-client: use EVP_PKEY_base_id

2021-11-18 Thread Theo Buehler
EVP_PKEY will become opaque, so we must stop reaching inside it. As should be completely evident from the name, EVP_PKEY_type(pkey->type) is the same as EVP_KEY_base_id(pkey). >From lib/libcrypto/evp/p_lib.c: int EVP_PKEY_base_id(const EVP_PKEY *pkey) { return EVP_PKEY_type(pkey->type); }

Re: Silence vmd rtc_update_rega non-32KHz timebase spam

2021-11-18 Thread Brian Conway
It appears the MC_DIVIDER_MASK define can also be removed, my bad. Brian Conway On Thu, Nov 18, 2021 at 8:02 AM Brian Conway wrote: > > Per https://marc.info/?l=openbsd-misc&m=159113575425726 , mlarkin@ > suggested someone can remove it. It's still pretty spammy at the > current time for me. > >

Silence vmd rtc_update_rega non-32KHz timebase spam

2021-11-18 Thread Brian Conway
Per https://marc.info/?l=openbsd-misc&m=159113575425726 , mlarkin@ suggested someone can remove it. It's still pretty spammy at the current time for me. Brian Conway Software Engineer, Owner RCE Software, LLC diff --git usr.sbin/vmd/mc146818.c usr.sbin/vmd/mc146818.c index e3599c68504..17cf21221e

Rework UNIX sockets locking to be fine grained

2021-11-18 Thread Vitaliy Makkoveev
The UNIX sockets garbage collector was moved out of global `unp_lock' rwlock(9) which locks the whole layer. Now it's used to protect per-socket data and it's time to replace it to per-socket's `so_lock'. Unlike PF_ROUTE and PF_KEY sockets we have the paths where multiple sockets should be locked

Re: Retry sleep in poll/select

2021-11-18 Thread Martin Pieuchot
On 17/11/21(Wed) 09:51, Scott Cheloha wrote: > > On Nov 17, 2021, at 03:22, Martin Pieuchot wrote: > > > > On 16/11/21(Tue) 13:55, Visa Hankala wrote: > >> Currently, dopselect() and doppoll() call tsleep_nsec() without retry. > >> cheloha@ asked if the functions should handle spurious wakeups.

Re: IPsec tdb ddb print

2021-11-18 Thread Alexander Bluhm
On Thu, Nov 18, 2021 at 10:00:28AM +0100, Claudio Jeker wrote: > > > I think this needs to be ntohs(tdb->tdb_udpencap_port) since it is still > > > stored in network byte order. > > > > With ntohs, it's "udpencap_port: " > > I would also use %d as format string. This is just a simple port

Re: IPsec tdb ddb print

2021-11-18 Thread Claudio Jeker
On Thu, Nov 18, 2021 at 08:50:37AM +, Stuart Henderson wrote: > On 2021/11/18 09:15, Claudio Jeker wrote: > > On Thu, Nov 18, 2021 at 08:10:26AM +, Stuart Henderson wrote: > > > On 2021/11/15 17:23, Alexander Bluhm wrote: > > > > + DUMP(ids, "%p"); > > > > + DUMP

Re: IPsec tdb ddb print

2021-11-18 Thread Stuart Henderson
On 2021/11/18 09:15, Claudio Jeker wrote: > On Thu, Nov 18, 2021 at 08:10:26AM +, Stuart Henderson wrote: > > On 2021/11/15 17:23, Alexander Bluhm wrote: > > > + DUMP(ids, "%p"); > > > + DUMP(ids_swapped, "%d"); > > > + DUMP(mtu, "%d"); > > > + DUMP(mtutimeout, "

Re: IPsec tdb ddb print

2021-11-18 Thread Claudio Jeker
On Thu, Nov 18, 2021 at 08:10:26AM +, Stuart Henderson wrote: > On 2021/11/15 17:23, Alexander Bluhm wrote: > > + DUMP(ids, "%p"); > > + DUMP(ids_swapped, "%d"); > > + DUMP(mtu, "%d"); > > + DUMP(mtutimeout, "%lld"); > > + pr("%18s: %08x\n", "ud

Re: IPsec tdb ddb print

2021-11-18 Thread Stuart Henderson
On 2021/11/15 17:23, Alexander Bluhm wrote: > + DUMP(ids, "%p"); > + DUMP(ids_swapped, "%d"); > + DUMP(mtu, "%d"); > + DUMP(mtutimeout, "%lld"); > + pr("%18s: %08x\n", "udpencap_port", > + ntohl(tdb->tdb_udpencap_port)); n

slaacd(8): prevent crash when interface disappears

2021-11-18 Thread Florian Obser
This is split in two for easier review and I also intend to commit it like this. The first diff shuffles setting of if_index around so that it's available in all switch cases and uses it consistently instead of ifm->ifm_index. That way we can copy the if_name == NULL check into each case block pr