kqueue_scan() should not return EWOULDBLOCK

2020-12-22 Thread Visa Hankala
This fixes a recent regression in kqueue_scan() where the function can mistakenly return EWOULDBLOCK. Currently, kqueue_scan() does one more scan attempt after a timeout. Usually, this gives no new events and the function bails out through the following code. Note that it clears `error'.

Wake on LAN support for rge(4)

2020-12-22 Thread Kevin Lo
Hi, This diff implements WoL support in rge(4). I can wakeup the machine with WoL after suspending it through `zzz` or powering off it through `halt -p`. Index: share/man/man4/rge.4 === RCS file: /cvs/src/share/man/man4/rge.4,v

Re: uvmexp & per-CPU counters

2020-12-22 Thread Mark Kettenis
> Date: Mon, 21 Dec 2020 16:46:32 -0300 > From: Martin Pieuchot > > During a page fault multiples counters are updated. They fall into two > categories "fault counters" and "global statistics" both of which are > currently represented by int-sized fields inside a global: `uvmexp'. > > Diff

Re: xhci zero length transfers 'leak' one transfer buffer count

2020-12-22 Thread Marcus Glocker
> > Did you consider incrementing xx->ntrb instead? >That doesn't work either, because the status completion code needs >xx->ntrb to be correct for the data TD to be handled correctly. >Incrementing xx->ntrb means the number of TRBs for the data TD is >incorrect, since it includes the (optional)

Re: Wireguard - VPN up after reboot

2020-12-22 Thread Solene Rapenne
On Tue, 22 Dec 2020 09:50:04 + "Salvatore Cuzzilla" : > Hi Everyone, > > I'm happily using 'Wireguard' to setup few VPNs. > I store the required configuration within /etc/hostname.wg0 & I startup the > tunnel with 'doas sh > /etc/netstart wg0'. > > Everything is working like expected. >

Re: Force knote state update in klist_invalidate()

2020-12-22 Thread Visa Hankala
On Mon, Dec 21, 2020 at 04:51:45PM -0300, Martin Pieuchot wrote: > On 21/12/20(Mon) 16:45, Visa Hankala wrote: > > There is a slight inconsistency in klist_invalidate(). If the knote is > > already in the event queue and has flag EV_ONESHOT, kqueue_scan() will > > not invoke the newly set f_event.

Re: [diff] usr.sbin/smtpd: fix event handling upon exit

2020-12-22 Thread Todd C . Miller
OK millert@ - todd

Re: Wireguard - VPN up after reboot

2020-12-22 Thread Olivia Mackintosh
AFAIK, rc(8) should run netstart on boot. This is executed at /etc/rc:447. Can you post the contents of /etc/hostname.wg0 (of course redacting sensitive fields) ? Olivia On 22 December 2020 09:50:04 GMT, Salvatore Cuzzilla wrote: >Hi Everyone, > >I'm happily using 'Wireguard' to setup few

Re: IPv6 pf_test EACCES

2020-12-22 Thread Alexandr Nedvedicky
On Mon, Dec 21, 2020 at 11:34:04PM +0100, Alexander Bluhm wrote: > Hi, > > A while ago we decided to pass EACCES to uerland if pf blocks a > packet. IPv6 still has the old EHOSTUNREACH code. > > Use the same errno for dropped IPv6 packets as in IPv4. > > ok? > looks good to me. OK sashan

Wireguard - VPN up after reboot

2020-12-22 Thread Salvatore Cuzzilla
Hi Everyone, I'm happily using 'Wireguard' to setup few VPNs. I store the required configuration within /etc/hostname.wg0 & I startup the tunnel with 'doas sh /etc/netstart wg0'. Everything is working like expected. However, upon system reload the connectivity is lost. The wg0 interface comes

Re: IPv6 pf_test EACCES

2020-12-22 Thread Florian Obser
Yes please. OK florian On 21 December 2020 23:34:04 CET, Alexander Bluhm wrote: >Hi, > >A while ago we decided to pass EACCES to uerland if pf blocks a >packet. IPv6 still has the old EHOSTUNREACH code. > >Use the same errno for dropped IPv6 packets as in IPv4. > >ok? > >bluhm > >Index: