Re: Checking OpenBSD host type

2023-09-19 Thread Rudolf Leitgeb
See this response for the same command on my EdgeRouter: edgy# sysctl hw hw.machine=octeon hw.model=Cavium OCTEON (rev 0.2) @ 1000 MHz hw.ncpu=4 hw.byteorder=4321 hw.pagesize=16384 hw.disknames=sd0:3b7d06c5b561182c hw.diskcount=1

Re: Checking OpenBSD host type

2023-09-19 Thread Alessandro Baggi
Il 19/09/23 16:51, Denis Fondras ha scritto: Le Tue, Sep 19, 2023 at 03:13:21PM +0200, Alessandro Baggi a écrit : Hi list, there is a way to check if OpenBSD runs on VM or physical hardware? Something like in sysctl or similar. Thank you in advance. You may want to check the `hw`

Re: Checking OpenBSD host type

2023-09-19 Thread Denis Fondras
Le Tue, Sep 19, 2023 at 03:13:21PM +0200, Alessandro Baggi a écrit : > Hi list, > there is a way to check if OpenBSD runs on VM or physical hardware? > > Something like in sysctl or similar. > > Thank you in advance. > You may want to check the `hw` variable : $ sysctl hw [...]

Re: GPIO on Octeon

2023-09-19 Thread Theo de Raadt
Alex Frolkin wrote: > Hi all, > > I see that the Octeon kernel provides an octgpio0 device, but there's no > gpio0 at octgpio0 device (and I've tried to compile a kernel that has > it, but it fails to configure), and the gpioctl binary is missing. > > Is GPIO support on this platform just

Checking OpenBSD host type

2023-09-19 Thread Alessandro Baggi
Hi list, there is a way to check if OpenBSD runs on VM or physical hardware? Something like in sysctl or similar. Thank you in advance.

Re: pkg_add -vV slow progression

2023-09-19 Thread Marc Espie
On Sun, Sep 17, 2023 at 09:17:58PM +0300, Mihai Popescu wrote: > Hello, > > Is there any recent major change in base packages or pkg_add? > I ask because the pkg_add -vV is slower than usual at each package, > most of the time spent in Extracting ... phase. > I use amd64 recent snapshot. I

Re: OpenBSD Wireguard implementation not copying ToS from inner to outer WG header

2023-09-19 Thread Andy Lemin
On 19 Sep 2023, at 20:07, Janne Johansson wrote:Den sön 17 sep. 2023 kl 09:19 skrev Andrew Lemin :Hi, I have been testing the Wireguard implementation on OpenBSD and noticed that the ToS field is not being copied from the inner unencrypted header to the outer Wireguard

Re: OpenBSD Wireguard implementation not copying ToS from inner to outer WG header

2023-09-19 Thread Janne Johansson
Den sön 17 sep. 2023 kl 09:19 skrev Andrew Lemin : > Hi, > > I have been testing the Wireguard implementation on OpenBSD and noticed > that the ToS field is not being copied from the inner unencrypted header to > the outer Wireguard header, resulting in ALL packets going into the same PF > Prio /

Re: OpenBSD Wireguard implementation not copying ToS from inner to outer WG header

2023-09-19 Thread Stuart Henderson
On 2023/09/19 19:36, Andrew Lemin wrote: > > Awesome! Thank you so much Stuart :D > I will test this weekend.. btw if I'm not mistaken I think this will only copy the priority to the mbuf header rather than to the IP header, so will be used internally in OpenBSD but not on the rest of the

Re: OpenBSD Wireguard implementation not copying ToS from inner to outer WG header

2023-09-19 Thread Andrew Lemin
On Mon, Sep 18, 2023 at 10:59 PM Stuart Henderson wrote: > On 2023-09-17, Andrew Lemin wrote: > > I have been testing the Wireguard implementation on OpenBSD and noticed > > that the ToS field is not being copied from the inner unencrypted header > to > > the outer Wireguard header, resulting

GPIO on Octeon

2023-09-19 Thread Alex Frolkin
Hi all, I see that the Octeon kernel provides an octgpio0 device, but there's no gpio0 at octgpio0 device (and I've tried to compile a kernel that has it, but it fails to configure), and the gpioctl binary is missing. Is GPIO support on this platform just incomplete? Or am I misunderstanding

Re: Trouble with high network traffic on APU2

2023-09-19 Thread Christer Solskogen
On Tue, Sep 19, 2023 at 9:27 AM Jan Stary wrote: > > What do you mean by high network traffic? Around 34k packets pr second. > How many packets per seconds are they processing? > > > the APU2 is having trouble. The whole machine goes into a > > slow-working mode, so slow that it won't get any

Trouble with high network traffic on APU2

2023-09-19 Thread Christer Solskogen
Hi! I have both a APU1 and a APU2 working together with CARP as my firewall. Since sometime in the summer, whenever I have high network traffic the APU2 is having trouble. The whole machine goes into a slow-working mode, so slow that it won't get any new lease from my ISPs dhcp server. This does