dwge(4) kstats

2023-06-16 Thread Jonathan Matthew
This adds kstats for hardware counters available in (some) dwge devices. If the counters are not present, as in Allwinner A20 devices among others, they just read 0. On an RK3399 device, they do exist, and they yield something like this: rp64$ kstat dwge0::dwge-stats: dwge0:0:dwge-stats:0 tx oct

Re: tso ip6 forward

2023-06-16 Thread Alexander Bluhm
On Mon, Jun 12, 2023 at 03:46:28PM +0200, Alexander Bluhm wrote: > I found a little inconsistency in IPv6 forwarding with TSO. > > Sending with TSO should only done if the large packet does not fit > in the interface MTU. In case tcp_if_output_tso() does not process > the packet, we should send a

Re: iked: remove print_host()

2023-06-16 Thread Claudio Jeker
On Fri, Jun 16, 2023 at 07:14:01AM +0200, Theo Buehler wrote: > With the last print_host() contortions out of the way, this is only used > via print_addr() and can go. Make sa, buf, len local. Align variables. > Unindent the if (buf == NULL) path. One minor comment below. > Index: iked.h > =

Re: patch: make CRYPTO_get_ex_new_index not return 0

2023-06-16 Thread Theo Buehler
On Wed, May 24, 2023 at 05:06:04PM -0400, Marc Aldorasi wrote: > On Wed, May 24, 2023 at 2:16 PM Theo Buehler wrote: > > On Tue, May 23, 2023 at 12:40:40PM -0400, Marc Aldorasi wrote: > > > The man page for CRYPTO_get_ex_new_index says that "the value 0 is > > > reserved for the legacy "app_data"

Re: vmd: relax absolute path requirement for configtest

2023-06-16 Thread Dave Voutila
Omar Polo writes: > Hello, > > after vmd.c rv 1.142 vmd(8) errors when ran with a non-absolute path; > this makes using -n (configtest) slightly more verbose, as the full > path is needed and not just `vmd -n'. > > here's an attempt at relaxing the requirement for the -n case only. > since we'r

K&R -> ANSI functions in config(8)

2023-06-16 Thread Theo Buehler
Trivial, but config is important, so I'd rather have an ok. Index: scan.l === RCS file: /cvs/src/usr.sbin/config/scan.l,v retrieving revision 1.24 diff -u -p -r1.24 scan.l --- scan.l 9 Jul 2017 14:04:50 - 1.24 +++ scan.

Re: K&R -> ANSI functions in config(8)

2023-06-16 Thread A Tammy
On 6/16/23 12:08, Theo Buehler wrote: > Trivial, but config is important, so I'd rather have an ok. > > Index: scan.l > === > RCS file: /cvs/src/usr.sbin/config/scan.l,v > retrieving revision 1.24 > diff -u -p -r1.24 scan.l > --- sca

Re: tso ip6 forward

2023-06-16 Thread Jan Klemkow
On Fri, Jun 16, 2023 at 12:06:08PM +0200, Alexander Bluhm wrote: > On Mon, Jun 12, 2023 at 03:46:28PM +0200, Alexander Bluhm wrote: > > I found a little inconsistency in IPv6 forwarding with TSO. > > > > Sending with TSO should only done if the large packet does not fit > > in the interface MTU.

Re: K&R -> ANSI functions in config(8)

2023-06-16 Thread Omar Polo
On 2023/06/16 18:08:17 +0200, Theo Buehler wrote: > Trivial, but config is important, so I'd rather have an ok. fwiw ok op@ too, this time I remembered to pay attention to the order :) > Index: scan.l > === > RCS file: /cvs/src/usr.

reorder libssl and libtls at boot?

2023-06-16 Thread Job Snijders
Hi all, Would it be worth it to reorder libssl & libtls at boot? Kind regards, Job Index: etc/rc === RCS file: /cvs/src/etc/rc,v retrieving revision 1.571 diff -u -p -r1.571 rc --- etc/rc 26 Apr 2023 14:28:09 - 1.571