Un-const pci_attach_args var

2020-11-26 Thread Kevin Lo
ok? Index: sys/dev/pci/berkwdt.c === RCS file: /cvs/src/sys/dev/pci/berkwdt.c,v retrieving revision 1.9 diff -u -p -u -p -r1.9 berkwdt.c --- sys/dev/pci/berkwdt.c 8 Sep 2017 05:36:52 - 1.9 +++ sys/dev/pci/berkwdt.c

Re: rad(8): check if IPv6 is enabled on an interface

2020-11-26 Thread Theo Buehler
On Thu, Nov 26, 2020 at 05:49:10PM +0100, Florian Obser wrote: > The way rad(8) is normaly used is netstart(8) setup a bunch of > interfaces with IPv6 prefixes and one or more are listed in rad.conf. > Everything just works. > > But rad can also be configured to work on interfaces that are > dynam

Re: ftp(1): add SOCKS proxy support

2020-11-26 Thread Steffen Nurpmeso
Nick Gasson wrote in <87im9srza8@bertha.nickg.me.uk>: |Hi, | |I often need to go through a SOCKS proxy to access certain sites. The |diff below adds SOCKS5 support to ftp(1) for HTTP transfers, similar to |curl(1). Enabled when http_proxy is set to a socks5:// URL. | |Also fixes two exi

kvm_getfiles and KERN_FILE_BYFILE

2020-11-26 Thread Martijn van Duren
I'm currently playing around a bit with kvm_getfiles and found that I couldn't use KERN_FILE_BYFILE with DTYPE_SOCKET. According to kvm_getfiles(3): For KERN_FILE_BYFILE the recognized file types are defined in : DTYPE_VNODE files and devices DTYPE_SOCKET

Re: Correct IPL for UVM pageqlock

2020-11-26 Thread Mark Kettenis
> Date: Thu, 26 Nov 2020 14:19:01 -0300 > From: Martin Pieuchot > > As reported by AIsha Tammy on bugs@, there's a current recursion > possible with the pageqlock: > >ddb> trace >db_enter() at db_enter+0x10 >panic(81dcd47c) at panic+0x12a >mtx_enter(B219ed00) at m

Correct IPL for UVM pageqlock

2020-11-26 Thread Martin Pieuchot
As reported by AIsha Tammy on bugs@, there's a current recursion possible with the pageqlock: ddb> trace db_enter() at db_enter+0x10 panic(81dcd47c) at panic+0x12a mtx_enter(B219ed00) at mtx_enter+0x81 uvm_objfree(fd8015f2c9a0) at uvm_objfree+0x61 buf_dealloc_

rad(8): check if IPv6 is enabled on an interface

2020-11-26 Thread Florian Obser
The way rad(8) is normaly used is netstart(8) setup a bunch of interfaces with IPv6 prefixes and one or more are listed in rad.conf. Everything just works. But rad can also be configured to work on interfaces that are dynamically added (tap, pair, vether...) It would then spam the log with:

ftp(1): add SOCKS proxy support

2020-11-26 Thread Nick Gasson
Hi, I often need to go through a SOCKS proxy to access certain sites. The diff below adds SOCKS5 support to ftp(1) for HTTP transfers, similar to curl(1). Enabled when http_proxy is set to a socks5:// URL. Also fixes two existing memory leaks: proxyurl (set to NULL on line 646 before freeing) and

Re: slimblade support

2020-11-26 Thread Sven M . Hallberg
Thomas Frohwein on Sat, Nov 21 2020: > Hi timo > > On Sat, Nov 21, 2020 at 08:10:03AM +0200, Timo Myyrä wrote: >> Hi, >> >> The last attempt at adding Kensington Slimblade trackball support seems >> to have stalled: >> https://marc.info/?l=openbsd-tech&m=147444999319756&w=2 > > Thanks for digging

Re: an(4): tsleep(9) -> tsleep_nsec(9)

2020-11-26 Thread Mark Kettenis
> Date: Thu, 26 Nov 2020 10:29:50 +0100 > From: Claudio Jeker > > On Thu, Nov 26, 2020 at 08:25:48PM +1100, Jonathan Gray wrote: > > On Tue, Nov 24, 2020 at 07:20:46PM -0600, Scott Cheloha wrote: > > > Hi, > > > > > > Both kettenis@ and mpi@ have mentioned in private that my proposed > > > chang

Re: an(4): tsleep(9) -> tsleep_nsec(9)

2020-11-26 Thread Claudio Jeker
On Thu, Nov 26, 2020 at 08:25:48PM +1100, Jonathan Gray wrote: > On Tue, Nov 24, 2020 at 07:20:46PM -0600, Scott Cheloha wrote: > > Hi, > > > > Both kettenis@ and mpi@ have mentioned in private that my proposed > > changes to tsleep_nsec(9) etc. would be nicer if we could just get rid > > of tslee

Re: an(4): tsleep(9) -> tsleep_nsec(9)

2020-11-26 Thread Jonathan Gray
On Tue, Nov 24, 2020 at 07:20:46PM -0600, Scott Cheloha wrote: > Hi, > > Both kettenis@ and mpi@ have mentioned in private that my proposed > changes to tsleep_nsec(9) etc. would be nicer if we could just get rid > of tsleep(9) etc. entirely. > > This is difficult, but I'll try. > > Worst case,

Re: myx(4): add initialization of sc_sff_lock rwlock

2020-11-26 Thread Sebastien Marie
On Thu, Nov 26, 2020 at 02:54:11PM +0800, Kevin Lo wrote: > Ok? yes please. ok semarie@ > Index: sys/dev/pci/if_myx.c > === > RCS file: /cvs/src/sys/dev/pci/if_myx.c,v > retrieving revision 1.111 > diff -u -p -u -p -r1.111 if_myx.c