Re: ifconfig(8): fix output of missing ipv6 addresses

2023-01-23 Thread Theo de Raadt
Weird. I have a feeling there is some reason for this hiding back around 2000. Which is wrong now. But I think originally the idea was to stop filling people's screens full of the stupid irrelevant inet6 stuff [1] But the diff is really really crazy. It is like you are avoiding removing some

Re: hardclock: don't call statclock(), stathz is always non-zero

2023-01-23 Thread Scott Cheloha
On Sat, Jan 21, 2023 at 05:02:49PM -0600, Scott Cheloha wrote: > All the platforms have switched to clockintr. > > Let's start by isolating statclock() from hardclock(). stathz is now > always non-zero: statclock() must be called separately. Update > several of the the stathz users to reflect

gptimer(4): switch to clockintr

2023-01-23 Thread Scott Cheloha
Whoops, missed one. This is the fifth and (I think) last armv7 clock interrupt driver that needs to switch to clockintr. gptimer(4) is nearly identical to dmtimer(4). Notable changes: - Switch stathz from 128 to hz. - Switch profhz from 1024 to (stathz * 10). Everything else in the patch is

strptime.c

2023-01-23 Thread enh
i synced Android's strptime.c with openbsd's recently, getting rid of unnecessary/accidental differences. i'm left with the following, which i thought was interesting (the last one's probably the most interesting, so definitely stick around even if -- as is likely -- you don't care about/actively

Re: Remove "sb == >so_rcv || sb == >so_snd" assertion from sb_notify() and sbspace()

2023-01-23 Thread Alexander Bluhm
On Mon, Jan 23, 2023 at 02:11:14PM +0300, Vitaliy Makkoveev wrote: > It's overkilling. mpi@ added this kassert when he introduced the so parameter for sb_notify() and sbspace(). It never triggered, so feel free to remove it. OK bluhm@ > Index: sys/sys/socketvar.h >

Re: riscv64: enable usb(4) interface, add missing usb devices?

2023-01-23 Thread Jeremie Courreges-Anglas
On Mon, Jan 23 2023, Mark Kettenis wrote: >> From: Jeremie Courreges-Anglas >> Date: Mon, 23 Jan 2023 13:43:15 +0100 >> >> I wanted to cross-connect the serial ports of my armv7 and riscv64 >> machines. Problem on riscv64: no uftdi driver. It looks like a lot of >> other USB drivers are

Re: Move SS_ISSENDING flag to `sb_state'

2023-01-23 Thread Alexander Bluhm
On Mon, Jan 23, 2023 at 02:09:14PM +0300, Vitaliy Makkoveev wrote: > It should belong to send buffer as the SS_CANTSENDMORE flag. OK bluhm@ > Index: sys/kern/uipc_socket.c > === > RCS file: /cvs/src/sys/kern/uipc_socket.c,v >

Re: Move SS_CANTRCVMORE and SS_RCVATMARK bits from `so_state' to `sb_state' of receive buffer

2023-01-23 Thread Alexander Bluhm
On Sun, Jan 22, 2023 at 03:49:37PM +0300, Vitaliy Makkoveev wrote: > On Sun, Jan 22, 2023 at 12:44:35AM +0100, Alexander Bluhm wrote: > > > > > @@ -1632,13 +1634,13 @@ somove(struct socket *so, int wait) > > > pru_rcvd(so); > > > > > > /* Receive buffer did shrink by len bytes,

ifconfig(8): fix output of missing ipv6 addresses

2023-01-23 Thread Jan Klemkow
Hi, ifconfig doesn't print ipv6 addresses if its used with media option. # ifconfig -A vio0: flags=8843 mtu 1500 ... inet 10.0.1.65 netmask 0xff00 broadcast 10.0.1.255 inet6 fe80::5054:ff:fe6a:b6fd%vio0 prefixlen 64 scopeid 0x1 inet6 fc00:1::1 prefixlen 64

Re: riscv64: enable usb(4) interface, add missing usb devices?

2023-01-23 Thread Mark Kettenis
> From: Jeremie Courreges-Anglas > Date: Mon, 23 Jan 2023 13:43:15 +0100 > > I wanted to cross-connect the serial ports of my armv7 and riscv64 > machines. Problem on riscv64: no uftdi driver. It looks like a lot of > other USB drivers are missing in GENERIC, both generic drivers and >

riscv64: enable usb(4) interface, add missing usb devices?

2023-01-23 Thread Jeremie Courreges-Anglas
I wanted to cross-connect the serial ports of my armv7 and riscv64 machines. Problem on riscv64: no uftdi driver. It looks like a lot of other USB drivers are missing in GENERIC, both generic drivers and hw-specific drivers: umodem, ugen, ulpt, uvideo, umb, uplcom etc. Feels like it would make

Remove "sb == >so_rcv || sb == >so_snd" assertion from sb_notify() and sbspace()

2023-01-23 Thread Vitaliy Makkoveev
It's overkilling. Index: sys/sys/socketvar.h === RCS file: /cvs/src/sys/sys/socketvar.h,v retrieving revision 1.116 diff -u -p -r1.116 socketvar.h --- sys/sys/socketvar.h 22 Jan 2023 12:05:44 - 1.116 +++ sys/sys/socketvar.h

Move SS_ISSENDING flag to `sb_state'

2023-01-23 Thread Vitaliy Makkoveev
It should belong to send buffer as the SS_CANTSENDMORE flag. Index: sys/kern/uipc_socket.c === RCS file: /cvs/src/sys/kern/uipc_socket.c,v retrieving revision 1.295 diff -u -p -r1.295 uipc_socket.c --- sys/kern/uipc_socket.c 22