sec(4): route based ipsec vpns

2023-07-03 Thread David Gwynne
tl;dr: this adds sec(4) p2p ip interfaces. Traffic in and out of these interfaces is protected by IPsec security associations (SAs), but there's no flows (security policy database (SPD) entries) associated with these SAs. The policy for using the sec(4) interfaces and their SAs is route-based

Add ethernet type check in ifsetlro()

2023-07-03 Thread Jan Klemkow
Hi, bluhm pointed out that the ether_brport_isset() check it just allowed on ethernet devices. Thus, I put an additional ethernet check in the condition. This also fixes EBUSY errors of "ifconfig lo0 tcplro" calls in my setup. ok? bye, Jan Index: net/if.c

tcp lro tso path mtu

2023-07-03 Thread Alexander Bluhm
Hi, As final step before making LRO (Large Receive Offload) the default, we have to fix path MTU discovery when forwarding. The drivers, currently ix(4) and lo(4) only, record an upper bound of the size of the original packets in ph_mss. When sending we must chop the packets with TSO (TCP

Re: Diff for evaluation (WACOM tablet driver)

2023-07-03 Thread Marc Espie
On Mon, Jul 03, 2023 at 03:20:33PM +0300, Matthieu Herrb wrote: > > Index: dev/usb/usbdevs.h > > === > > RCS file: /cvs/src/sys/dev/usb/usbdevs.h,v > > retrieving revision 1.769 > > diff -u -p -r1.769 usbdevs.h > > ---

Re: Diff for evaluation (WACOM tablet driver)

2023-07-03 Thread Matthieu Herrb
On Mon, Jul 03, 2023 at 11:22:45AM +0200, Marc Espie wrote: > I hope Vladimir will find the time to complete this answer. > > As far as Vlad's work goes, he did a presentation last week-end: > https://www.lre.epita.fr/news_content/SS_summer_week_pres/Vladimir_Driver_OpenBSD.pptx > > (sorry for

Re: ldpd: use new ibuf api

2023-07-03 Thread Theo Buehler
On Mon, Jul 03, 2023 at 12:42:49PM +0200, Claudio Jeker wrote: > On Mon, Jun 26, 2023 at 06:14:30PM +0200, Claudio Jeker wrote: > > Adjust ldpd to follow the new ibuf API. > > Diff is simple but as usual I could not test it out so please test. > > This is still open. I will commit this later

Re: ldpd: use new ibuf api

2023-07-03 Thread Claudio Jeker
On Mon, Jun 26, 2023 at 06:14:30PM +0200, Claudio Jeker wrote: > Adjust ldpd to follow the new ibuf API. > Diff is simple but as usual I could not test it out so please test. This is still open. I will commit this later today. > -- > :wq Claudio > > Index: hello.c >

Re: eigrpd more ibuf cleanup

2023-07-03 Thread Theo Buehler
On Mon, Jul 03, 2023 at 12:28:44PM +0200, Claudio Jeker wrote: > Same change as done in other daemons, use ibuf_data() and ibuf_size(). ok

Re: ripd more ibuf cleanup

2023-07-03 Thread Theo Buehler
On Mon, Jul 03, 2023 at 12:27:46PM +0200, Claudio Jeker wrote: > Similar to the other daemons use ibuf_data() and ibuf_size() instead of > direct access. ok tb

eigrpd more ibuf cleanup

2023-07-03 Thread Claudio Jeker
Same change as done in other daemons, use ibuf_data() and ibuf_size(). -- :wq Claudio Index: packet.c === RCS file: /cvs/src/usr.sbin/eigrpd/packet.c,v retrieving revision 1.21 diff -u -p -r1.21 packet.c --- packet.c26 Jun 2023

ripd more ibuf cleanup

2023-07-03 Thread Claudio Jeker
Similar to the other daemons use ibuf_data() and ibuf_size() instead of direct access. -- :wq Claudio Index: message.c === RCS file: /cvs/src/usr.sbin/ripd/message.c,v retrieving revision 1.16 diff -u -p -r1.16 message.c ---

apldcms: enable mtbuttons

2023-07-03 Thread Tobias Heider
This diff optionally enables the new multi touch mouse button behaviour for apldcms. ok? diff f3d7c2e4ca7de4e46cc3e888ef8fbfe71829307f 63e5d5edf5e8315206aa117b1d3a6be78e7fdd94 commit - f3d7c2e4ca7de4e46cc3e888ef8fbfe71829307f commit + 63e5d5edf5e8315206aa117b1d3a6be78e7fdd94 blob -

Re: bge(4) kstats

2023-07-03 Thread Alexander Bluhm
On Mon, Jul 03, 2023 at 04:48:36PM +1000, Jonathan Matthew wrote: > This adds kstats for the hardware counters available in bge(4) devices, > BCM5705 > and newer. The main complication is that some of the counters are already > used > in bge_stats_update_regs() as part of a hardware bug

Re: ospf6d ibuf cleanup

2023-07-03 Thread Theo Buehler
On Mon, Jul 03, 2023 at 11:31:45AM +0200, Claudio Jeker wrote: > Like ospfd use ibuf_data() consistently, also use ibuf_size() instead of > ibuf->wpos and ibuf_left() to check if there is enough space left. ok tb

ospf6d ibuf cleanup

2023-07-03 Thread Claudio Jeker
Like ospfd use ibuf_data() consistently, also use ibuf_size() instead of ibuf->wpos and ibuf_left() to check if there is enough space left. -- :wq Claudio Index: lsreq.c === RCS file: /cvs/src/usr.sbin/ospf6d/lsreq.c,v retrieving

Re: ospfd more ibuf cleanup

2023-07-03 Thread Theo Buehler
On Mon, Jul 03, 2023 at 11:28:44AM +0200, Claudio Jeker wrote: > Similar to the relayd diff use ibuf_data instead of ibuf->buf. ok tb

Re: more relayd ibuf cleanup

2023-07-03 Thread Theo Buehler
On Mon, Jul 03, 2023 at 11:26:34AM +0200, Claudio Jeker wrote: > This is just some additional ibuf cleanup in relayd. > Mostly use ibuf_data() instead of direct access to ibuf->buf. ok tb > > -- > :wq Claudio > > Index: check_tcp.c >

ospfd more ibuf cleanup

2023-07-03 Thread Claudio Jeker
Similar to the relayd diff use ibuf_data instead of ibuf->buf. -- :wq Claudio Index: auth.c === RCS file: /cvs/src/usr.sbin/ospfd/auth.c,v retrieving revision 1.21 diff -u -p -r1.21 auth.c --- auth.c 20 Jun 2023 15:19:55 -

more relayd ibuf cleanup

2023-07-03 Thread Claudio Jeker
This is just some additional ibuf cleanup in relayd. Mostly use ibuf_data() instead of direct access to ibuf->buf. -- :wq Claudio Index: check_tcp.c === RCS file: /cvs/src/usr.sbin/relayd/check_tcp.c,v retrieving revision 1.60 diff

Re: Diff for evaluation (WACOM tablet driver)

2023-07-03 Thread Marc Espie
I hope Vladimir will find the time to complete this answer. As far as Vlad's work goes, he did a presentation last week-end: https://www.lre.epita.fr/news_content/SS_summer_week_pres/Vladimir_Driver_OpenBSD.pptx (sorry for the medium, fortunately we have libreoffice) In the mean time, here is

Re: huge pfsync rewrite

2023-07-03 Thread Alexandr Nedvedicky
Hello, I went through the recent diff one more time. I could not spot anything wrong. Also my home router was happy with it for quite some time. Unfortunately I'm not using pfsync. However I'm sure hrvoje@ done his best to try to make it to crash and no luck diff survived. Having said earlier it

bge(4) kstats

2023-07-03 Thread Jonathan Matthew
This adds kstats for the hardware counters available in bge(4) devices, BCM5705 and newer. The main complication is that some of the counters are already used in bge_stats_update_regs() as part of a hardware bug workaround, some are affected by hardware bugs themselves, and some are read to