audio devices for armv7

2021-05-24 Thread Peter Hessler
After the recent uaudio dma fixes, I tried out audio playing on my armv7 system. Tested on the built-in audio port on hw.product=Tinker-RK3288, sounds fine. OK? (N.B. 'twrget' is not a typo, even if it looks like one) Index: etc/etc.armv7/MAKEDEV.md

Re: iwm(4) A-MSDU support

2021-03-30 Thread Peter Hessler
On 2021 Mar 30 (Tue) at 20:22:09 +0200 (+0200), Stefan Sperling wrote: :On Tue, Mar 30, 2021 at 07:36:28PM +0200, Peter Hessler wrote: :> Been running this for about 24 hours on my x395, seems to be good. :> :> Had only one stuck wifi when first trying it, but I was also stuck on a

Re: iwm(4) A-MSDU support

2021-03-30 Thread Peter Hessler
On 2021 Mar 29 (Mon) at 19:27:15 +0200 (+0200), Stefan Sperling wrote: :This patch attempts to add support for receiving A-MSDUs to iwm(4). :If you are using iwm(4) then please run with this patch and let me :know if it causes regressions. Thanks! : :ACHTUNG: This patch breaks iwx(4)! Don't use it

Re: slimblade support

2021-01-09 Thread Peter Hessler
On 2021 Jan 09 (Sat) at 07:00:29 -0700 (-0700), Thomas Frohwein wrote: :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=147444999319756=2 :>

Re: net80211: fix announced RSN (WPA2) capabilities

2020-12-07 Thread Peter Hessler
Looks good, no regression for my AP at home. OK On 2020 Dec 07 (Mon) at 22:55:29 +0100 (+0100), Stefan Sperling wrote: :When announcing RSN (WPA2) capabilities in management frames such as :association requests, we currently echo back all RSN (i.e. WPA2) :capabilities which were announced by our

Re: net80211: Use a BA agreement for rx immediately

2020-12-07 Thread Peter Hessler
On 2020 Dec 07 (Mon) at 16:41:33 +0100 (+0100), Stefan Sperling wrote: :On Mon, Dec 07, 2020 at 03:49:20PM +0100, Tobias Heider wrote: :> On Mon, Dec 07, 2020 at 02:33:10PM +0100, Stefan Sperling wrote: :> > On Mon, Dec 07, 2020 at 01:31:09PM +0100, Tobias Heider wrote: :> > > Some APs request a

Re: iwm(4): decoding of multiple MPDUs in one receive packet

2020-12-07 Thread Peter Hessler
OK On 2020 Dec 07 (Mon) at 10:28:59 +0100 (+0100), Tobias Heider wrote: :Hi, : :In iwm_rx_pkt() the calculation of "remain" seems to be wrong if :there are three or more MPDUs in one packet. :"remain" is initialized with the output buffer size. :Each time an MPDU is found in the packet remain is

Re: net80211: Better gapwait accounting

2020-12-07 Thread Peter Hessler
On 2020 Dec 07 (Mon) at 15:02:14 +0100 (+0100), Stefan Sperling wrote: :On Mon, Dec 07, 2020 at 02:36:05PM +0100, Tobias Heider wrote: :> Hi, :> :> our net80211 gapwait accounting implementation seems to have several :> problems: :> - If we lose packets with serial numbers 0 und 2 but receive the

Re: Call uvm_grow() on armv7

2020-09-25 Thread Peter Hessler
On 2020 Sep 25 (Fri) at 14:51:01 +0200 (+0200), Mark Kettenis wrote: :> Date: Fri, 25 Sep 2020 14:38:23 +0200 :> From: Peter Hessler :> :> After Mark noticed that arm64 didn't have it, I checked armv7 and it :> also doesn't have it. :> :> Successfully tested on a Ti

Call uvm_grow() on armv7

2020-09-25 Thread Peter Hessler
After Mark noticed that arm64 didn't have it, I checked armv7 and it also doesn't have it. Successfully tested on a Tinker-RK3288 OK? Index: sys/arch/arm/arm/fault.c === RCS file: /home/cvs/openbsd/src/sys/arch/arm/arm/fault.c,v

Re: apply changes immediately to join'd essids

2020-01-14 Thread Peter Hessler
On 2020 Jan 14 (Tue) at 13:11:57 +0100 (+0100), Stefan Sperling wrote: :On Mon, Jan 13, 2020 at 10:38:35PM +0100, Peter Hessler wrote: :> On 2020 Jan 12 (Sun) at 21:39:19 +0100 (+0100), Peter Hessler wrote: :> :When we change attributes for a join essid, we should apply the change :> :im

Re: apply changes immediately to join'd essids

2020-01-14 Thread Peter Hessler
On 2020 Jan 12 (Sun) at 21:39:19 +0100 (+0100), Peter Hessler wrote: :When we change attributes for a join essid, we should apply the change :immediately instead of waiting to (randomly) switch away and switch :back. And if we are connected to an AP, remove the node from the cache so we can

apply changes immediately to join'd essids

2020-01-12 Thread Peter Hessler
When we change attributes for a join essid, we should apply the change immediately instead of waiting to (randomly) switch away and switch back. Found by martijn@ OK? Index: net80211/ieee80211_ioctl.c === RCS file:

Re: increase IEEE80211_CACHE_SIZE

2019-12-28 Thread Peter Hessler
OK On 2019 Dec 28 (Sat) at 14:27:01 +0100 (+0100), Stefan Sperling wrote: :The number of entries in the node cache is currently capped to 100. : :This limit is outdated. Modern hardware like iwm(4) 8265 supports 46 :distinct channels (1-13, 36-165) each of which can host multiple APs. : :The

Re: bfd: respond to poll sequence from peer

2019-06-05 Thread Peter Hessler
Hi Mitchell Thanks a lot for the work you are putting into BFD, I'll be able to review this properly over the weekend. -peter On 2019 Jun 03 (Mon) at 20:37:17 +1000 (+1000), Mitchell Krome wrote: :Hi, : :Testing bfd against frr on linux, their bfd implementation sends polls :as soon as the

Re: ifmedia_ioctl: ignore ENETRESET from ifm_change()

2019-04-24 Thread Peter Hessler
On 2019 Apr 24 (Wed) at 22:50:58 +1000 (+1000), Jonathan Matthew wrote: :On Wed, Apr 24, 2019 at 12:21:47PM +0200, Stefan Sperling wrote: :> On Sun, Apr 21, 2019 at 09:44:08PM +0800, Kevin Lo wrote: :> > On Sun, Apr 21, 2019 at 01:02:39PM +1000, Jonathan Matthew wrote: :> > > Currently we have

Re: ksh "clear-screen" editing command

2019-04-02 Thread Peter Hessler
On 2019 Apr 01 (Mon) at 09:53:31 -0600 (-0600), Todd C. Miller wrote: :On Mon, 01 Apr 2019 16:52:34 +0200, Jeremie Courreges-Anglas wrote: : :> Since this went in, I'm using it on my machines instead of a bind -m hack. :> :> Can't we make ^L=clear-screen the default behavior? I don't see :>

Re: [4/4] Re: Add support for Meinberg DCF600USB to umbg(4)

2019-03-22 Thread Peter Hessler
OK On 2019 Mar 22 (Fri) at 10:04:37 +0100 (+0100), Paul de Weerd wrote: :Index: GENERIC :=== :RCS file: /home/OpenBSD/cvs/src/sys/arch/amd64/conf/GENERIC,v :retrieving revision 1.466 :diff -u -p -r1.466 GENERIC :--- GENERIC19 Jan

Re: [3/4] Re: Add support for Meinberg DCF600USB to umbg(4)

2019-03-22 Thread Peter Hessler
OK On 2019 Mar 22 (Fri) at 10:04:19 +0100 (+0100), Paul de Weerd wrote: : :Index: share/man/man4/umbg.4 :=== :RCS file: /home/OpenBSD/cvs/src/share/man/man4/umbg.4,v :retrieving revision 1.4 :diff -u -p -r1.4 umbg.4 :---

Re: xhci: set chain bit in link TRBs

2019-02-21 Thread Peter Hessler
On 2019 Feb 21 (Thu) at 16:19:22 +0100 (+0100), Patrick Wildt wrote: :On Thu, Feb 21, 2019 at 03:56:57PM +0100, Stefan Sperling wrote: :> On Thu, Feb 21, 2019 at 10:50:40AM +0100, Patrick Wildt wrote: :> > Hi, :> > :> > on my i.MX8M machine which features a DWC3 xHCI 1.10 controller I have :> >

Re: spelling correction

2019-02-10 Thread Peter Hessler
$ grep -c nonexistant /usr/share/dict/words 0 $ grep -c nonexistent /usr/share/dict/words 2 OK or if someone else wants to give me an OK I can commit this. On 2019 Feb 10 (Sun) at 11:13:04 -0500 (-0500), Pamela Mosiejczuk wrote: :Hi, :I noticed "non-existant" crop up in an error message and

Re: pvclock(4)

2018-12-05 Thread Peter Hessler
On 2018 Dec 04 (Tue) at 15:14:51 +0100 (+0100), Reyk Floeter wrote: :On Tue, Dec 04, 2018 at 05:43:48AM -0800, Chris Cappuccio wrote: :> Of course printf instead of panic for testers :> : :Oh, right, thanks! : :@john: Does this "slightly less simple" diff work for you? : :@phessler, Chris:

Re: pvclock(4)

2018-12-04 Thread Peter Hessler
On 2018 Dec 03 (Mon) at 16:56:10 -0800 (-0800), Chris Cappuccio wrote: :Reyk Floeter [r...@openbsd.org] wrote: :> :> Yes, KVM???s stable bit is not a reliable indication as it is seems to depend on the capabilities of the KVM version and not the actual availability of the feature on the

Re: Add acpipci(4) on amd64

2018-10-23 Thread Peter Hessler
On 2018 Oct 22 (Mon) at 21:45:06 +0200 (+0200), Mark Kettenis wrote: :Diff below adds an acpipci(4) driver on amd64. For now the main :purpose of this driver is to make the PCI-specific _OSC calls to :advertise the functionality we support. Most notably this advertises :support for PCIE native

Re: slaacd(8): moving between networks

2018-07-22 Thread Peter Hessler
On 2018 Jul 22 (Sun) at 18:19:01 +0200 (+0200), Florian Obser wrote: :When one is connected to a network, suspends or hibernates, moves to a :different network and wakes up one ends up with ip addresses from both :networks and things probably go sideways. There is a good chance that :source

Re: rc(8): don't hide failures from route6d & rtadvd

2018-07-11 Thread Peter Hessler
net.inet6.ip6.forwarding=0 OK(failed) On 2018 Jul 11 (Wed) at 09:58:18 +0200 (+0200), Florian Obser wrote: :at least rtadvd has it's own check and failes to start if forwarding :is not enabled, not sure what route6d is doing. : :rc(8) should not silently hide errors. : :OK? : :diff --git etc/rc

Re: bgpd softreconf in optimisation

2018-07-04 Thread Peter Hessler
yes please! OK On 2018 Jul 03 (Tue) at 22:37:29 +0200 (+0200), Claudio Jeker wrote: :There is no need to run against both input filters. :path_update() and prefix_remove() are both smart enough to handle all :cases (similar to a regular update). Should make reloads a bit faster. : :More precise

Re: slaacd(8) handle RTM_DELETE of default route

2018-05-17 Thread Peter Hessler
Running this for a little bit, done a bunch of lladdr random tests, as well as suspend resume tests (which I've added lladdr random on resume). This fixes the issues I'm seeing, OK. On 2018 May 17 (Thu) at 14:25:44 +0200 (+0200), Florian Obser wrote: :Peter points out that I never got around to

Re: 5GHz AP RSSI measurement problem

2018-05-02 Thread Peter Hessler
On 2018 Apr 30 (Mon) at 10:55:22 +0200 (+0200), Stefan Sperling wrote: :Setting aside concerns about my lack of understanding of the underlying :reason for this behaviour, the hack below is sufficient to make this AP :show up as a strong contender in the candidate list and be preferred :over 2GHz

Re: rssi comparison threshold

2018-05-01 Thread Peter Hessler
On 2018 May 01 (Tue) at 11:20:54 +0200 (+0200), Stefan Sperling wrote: :On Mon, Apr 30, 2018 at 08:57:23AM +0200, Peter Hessler wrote: :> On 2018 Apr 29 (Sun) at 11:51:26 +0200 (+0200), Stefan Sperling wrote: :> :This diff tries to avoid situations where background scans play :> :ping-pon

Re: rssi comparison threshold

2018-04-30 Thread Peter Hessler
On 2018 Apr 29 (Sun) at 11:51:26 +0200 (+0200), Stefan Sperling wrote: :This diff tries to avoid situations where background scans play :ping-pong between different APs with nearly equal RSSI, as :observed by phessler. : :Not all drivers represent RSSI values in dBm or percentage, so the :diff

free all nodes and set linkstate to down when entering the SCAN state for all drivers

2018-04-28 Thread Peter Hessler
Some drivers use their own functions to change the link state for a non-background scan, so ensure that they set the link state to down, and free all nodes. This is a follow up to stsp@'s ieee80211.c:r1.68. (N.B. the atu driver already calls ieee80211_free_allnodes in this case statement, but

Re: net80211: fix WEP

2018-04-27 Thread Peter Hessler
On 2018 Apr 27 (Fri) at 17:45:44 +0300 (+0300), Paul Irofti wrote: :On Fri, Apr 27, 2018 at 04:30:50PM +0200, Stefan Sperling wrote: :> We just found out that WEP has been broken since August 2017. :> Apparently not many people noticed. The commit which broke :> it was: :> :> [[[ :> CVSROOT:

Re: net80211: fix WEP

2018-04-27 Thread Peter Hessler
Verified it fixes WEP. OK On 2018 Apr 27 (Fri) at 16:30:50 +0200 (+0200), Stefan Sperling wrote: :We just found out that WEP has been broken since August 2017. :Apparently not many people noticed. The commit which broke :it was: : :[[[ :CVSROOT: /cvs :Module name: src :

Re: RTM_CHGADDRATTR

2018-04-25 Thread Peter Hessler
On 2018 Apr 18 (Wed) at 19:49:41 +0200 (+0200), Florian Obser wrote: :On Wed, Apr 18, 2018 at 05:05:59PM +0200, Florian Obser wrote: :> This is to inform userland (i.e. slaacd(8)) when duplicate address :> detection finishes. :> :> Not a big fan of the lock/unlock dance but I guess it can't be

Re: ifconfig,route,netstat: s/tableid/rtable/ for consistency

2018-04-12 Thread Peter Hessler
On 2018 Apr 11 (Wed) at 23:01:45 +0200 (+0200), Klemens Nanni wrote: :On Wed, Apr 11, 2018 at 09:28:03AM +0200, Peter Hessler wrote: :> No, all of these uses are correct as-is. :`tableid' surely isn't wrong, but using the argument name across manuals :seems nicer to me. : No, they are differ

Re: ifconfig,route,netstat: s/tableid/rtable/ for consistency

2018-04-11 Thread Peter Hessler
No, all of these uses are correct as-is. On 2018 Apr 10 (Tue) at 23:23:24 +0200 (+0200), Klemens Nanni wrote: :Several tools may operate on specific routing tables (or routing domains :in special cases). : :With the exception of `tableid' in ifconfig(8), route(8) and netstat(1), :all other

Re: correctly calculate RFC7217 based IPv6 address

2018-03-13 Thread Peter Hessler
On 2018 Mar 13 (Tue) at 12:41:17 +0100 (+0100), Florian Obser wrote: :(sending this to tech@ so that more people see this) : :semarie@ pointed out on bugs@ ( :https://marc.info/?l=openbsd-bugs=152084960013726=2 ) that his :RFC7217 IPv6 address changed after an upgrade. Of course it should not. :

Re: slaacd(8): RFC 7136

2018-03-07 Thread Peter Hessler
yup, makes sense. OK On 2018 Mar 07 (Wed) at 18:29:07 +0100 (+0100), Florian Obser wrote: :RFC 7136 clarifies that the "u" and "g" bits are only significant when :IPv6 unicast interface identifiers are derived from IEEE link-layer :addresses. In all other cases the interface identifier should

Re: armv7 ABI fix

2018-02-27 Thread Peter Hessler
On 2018 Feb 27 (Tue) at 22:04:15 +0100 (+0100), Mark Kettenis wrote: :The "new" AAPCS-based ABI that we have been using on armv7 for a while :now requires various 64-bit types to be aligned on an 8-byte boundary. :Unfortunately we didn't realize this when we switched and didn't :adjust the

vmctl show

2018-02-10 Thread Peter Hessler
My fingers have typed "vmctl show" instead of "vmctl status" for over a year now, so add it as an alias. OK? Index: main.c === RCS file: /cvs/openbsd/src/usr.sbin/vmctl/main.c,v retrieving revision 1.34 diff -u -p -u -p -r1.34

Re: switch armv7 to clang

2018-01-18 Thread Peter Hessler
On 2018 Jan 18 (Thu) at 19:08:17 +0100 (+0100), Mark Kettenis wrote: :I think we are ready to switch. The procedure is the same as with :previous switches. Here is the corresponding ports diff: Index: infrastructure/mk/arch-defines.mk

Re: restrict carp use to ethernet interfaces

2018-01-11 Thread Peter Hessler
On 2018 Jan 11 (Thu) at 11:51:25 +0100 (+0100), Peter Hessler wrote: :On 2018 Jan 11 (Thu) at 20:41:19 +1000 (+1000), David Gwynne wrote: ::vlan and trunk are definitely ethernet interfaces. :: : :Is there anything in OpenBSD that isn't an ethernet inteface? : based on a simplistic grep: upl(4

Re: restrict carp use to ethernet interfaces

2018-01-11 Thread Peter Hessler
On 2018 Jan 11 (Thu) at 20:41:19 +1000 (+1000), David Gwynne wrote: :vlan and trunk are definitely ethernet interfaces. : Is there anything in OpenBSD that isn't an ethernet inteface? -- It is impossible to travel faster than light, and certainly not desirable, as one's hat keeps blowing off.

Re: Add reset option to boot command of ddb(4)

2017-12-14 Thread Peter Hessler
On 2017 Dec 14 (Thu) at 11:49:18 +0100 (+0100), Martin Pieuchot wrote: :On 14/12/17(Thu) 11:30, Mark Kettenis wrote: :> > X-Originating-IP: 88.153.7.170 :> > Date: Thu, 14 Dec 2017 10:30:21 +0100 :> > From: Martin Pieuchot :> > :> > On 13/12/17(Wed) 19:09, Florian Riehm wrote:

Re: relayd/ctl alternative control socket

2017-11-29 Thread Peter Hessler
bgpd uses that way *because* it can use an alternate socket. Being able to specify a different socket for daemon/client is pretty helpful. On 2017 Nov 28 (Tue) at 16:06:51 +0100 (+0100), Sebastian benoit wrote: :Hi, : :your diff looks good, but i would rather do it the way bgpd/bgpctl do it: :

Re: hide wpakey from root by default

2017-11-27 Thread Peter Hessler
On 2017 Nov 27 (Mon) at 16:27:57 +0100 (+0100), Stefan Sperling wrote: :On Mon, Nov 27, 2017 at 11:22:46AM +0100, Peter Hessler wrote: :> This hides the username that is used, not the password/authkey. Is the :> username private information? : :Yes it seems best to avoid exposing thes

Re: hide wpakey from root by default

2017-11-27 Thread Peter Hessler
On 2017 Nov 27 (Mon) at 02:33:59 +0100 (+0100), Stefan Sperling wrote: :On Mon, Nov 27, 2017 at 01:31:17AM +0100, Stefan Sperling wrote: :> On Sun, Nov 26, 2017 at 06:17:14PM +0100, Jeremie Courreges-Anglas wrote: :> > :> > I don't think anything has been committed regarding this issue, right? :>

Re: macppc: default to MBR for new installs

2017-11-23 Thread Peter Hessler
OK On 2017 Nov 22 (Wed) at 23:20:46 +0100 (+0100), Stefan Sperling wrote: :This flips the default response for the macppc disk layout question :from HFS to MBR. : :I use an MBR on all my macppc machines. Booting OpenBSD is much simpler :this way. I don't see why I cannot just hit enter for this

ieee80211: disable wpa/wep when changing nwid

2017-11-05 Thread Peter Hessler
Changing nwid on a wifi network means it is a new network. By definition the WPA crypto keys use the nwid as part of the crypto hash. And it is super unlikely that a differently named network will have the same WEP key. In that case, you can enter it again. With this, when you change wifi

Re: forbid config reloads in ospf6d

2017-11-05 Thread Peter Hessler
OK On 2017 Nov 05 (Sun) at 15:50:42 +0100 (+0100), Jeremie Courreges-Anglas wrote: : :ospf6d consistently fails when I ask it to reload its config, even :though I have a very basic test setup: : :area 0.0.0.0 { :interface em0 { passive } :interface vether0 :} : :Fixing ospf6d

Re: add one more softnet taskq

2017-10-31 Thread Peter Hessler
reads fine, and works for me in light testing. OK phessler@ On 2017 Oct 30 (Mon) at 08:36:34 +0100 (+0100), Alexandr Nedvedicky wrote: :Hello, : :patch below adds additional softnet taskq. This will allow certain degree of :parallelism for packet processing in pf_test(). The current plan is to

Re: add one more softnet taskq

2017-10-30 Thread Peter Hessler
On 2017 Oct 30 (Mon) at 08:36:34 +0100 (+0100), Alexandr Nedvedicky wrote: :Hello, : :patch below adds additional softnet taskq. This will allow certain degree of :parallelism for packet processing in pf_test(). The current plan is to let :packets received by even NICs (even ifindex) to be

Re: preliminary kabylake support for inteldrm

2017-09-27 Thread Peter Hessler
On 2017 Sep 27 (Wed) at 00:07:42 +0200 (+0200), Robert Nagy wrote: : :Hi : :This is an updated diff for preliminary kabylake support for 6.2, :this needs extensive testing on all inteldrm variants. : :This diff is also in snapshots now so please, test, test test! : :Thank you : Works fine on an

Re: have netstart handle tap interfaces as well as tun

2017-09-19 Thread Peter Hessler
OK On 2017 Sep 19 (Tue) at 16:54:04 +1000 (+1000), David Gwynne wrote: :this helsp if you want to have a tap interface joined to a bridge :on boot. : :ok? : :Index: netstart :=== :RCS file: /cvs/src/etc/netstart,v :retrieving

teach wsconsctl about efifb

2017-09-02 Thread Peter Hessler
on a laptop with a simplefb[1] display, wsconsctl shows display.type=unknown_71. With the below patch, it shows display.type=efifb I checked the other values, and it was the only missing display type. [1] simplefb claims to be WSDISPLAY_TYPE_EFIFB OK? Index: sbin/wsconsctl/util.c

Re: [phess...@openbsd.org: add pinebook support to u-boot]

2017-08-31 Thread Peter Hessler
On 2017 Aug 31 (Thu) at 19:16:57 +1000 (+1000), Jonathan Gray wrote: :On Thu, Aug 31, 2017 at 10:59:20AM +0200, Peter Hessler wrote: :> On 2017 Aug 31 (Thu) at 10:41:41 +0200 (+0200), Peter Hessler wrote: :> :On 2017 Aug 27 (Sun) at 22:15:46 +0200 (+0200), Peter Hessler wrote: :> ::-

Re: [phess...@openbsd.org: add pinebook support to u-boot]

2017-08-31 Thread Peter Hessler
On 2017 Aug 31 (Thu) at 10:41:41 +0200 (+0200), Peter Hessler wrote: :On 2017 Aug 27 (Sun) at 22:15:46 +0200 (+0200), Peter Hessler wrote: ::- Forwarded message from Peter Hessler <phess...@openbsd.org> - ::taken from Icenowy Zheng's repository, ::

Re: [phess...@openbsd.org: add pinebook support to u-boot]

2017-08-31 Thread Peter Hessler
On 2017 Aug 27 (Sun) at 22:15:46 +0200 (+0200), Peter Hessler wrote: :- Forwarded message from Peter Hessler <phess...@openbsd.org> - :taken from Icenowy Zheng's repository, :commit bd656cab0c3e0669e977641c15095f32d7b0731f : :This gives us basic support for the Pine64 Pinebook

Re: include pinebook firmware in the install media

2017-08-31 Thread Peter Hessler
On 2017 Aug 27 (Sun) at 21:54:07 +0200 (+0200), Peter Hessler wrote: :(this depends on the patch to u-boot I just sent to ports@) : :If we should manage to boot on a Pinebook machine, we should install the :correct firmware for it. : :OK? : Updated to a now working copy! This grew bsd.rd a bit

Re: [phess...@openbsd.org: add pinebook support to u-boot]

2017-08-27 Thread Peter Hessler
On 2017 Aug 27 (Sun) at 22:30:37 +0200 (+0200), Mark Kettenis wrote: :> Date: Sun, 27 Aug 2017 22:15:46 +0200 :> From: Peter Hessler <phess...@openbsd.org> :> :> This gives us basic support for the Pine64 Pinebook :> :> OK? :> :> $ sysctl hw :> hw.machine=arm6

[phess...@openbsd.org: add pinebook support to u-boot]

2017-08-27 Thread Peter Hessler
- Forwarded message from Peter Hessler <phess...@openbsd.org> - taken from Icenowy Zheng's repository, commit bd656cab0c3e0669e977641c15095f32d7b0731f This gives us basic support for the Pine64 Pinebook OK? $ sysctl hw hw.machine=arm64 hw.model=ARM Cortex-A53 r0p4 hw.ncpu=1 hw.byt

Re: [PATCH 2/3] openbgpd: Add support for 'unknown' well-known communities

2017-06-25 Thread Peter Hessler
On 2017 Jun 23 (Fri) at 16:01:58 +0200 (+0200), Job Snijders wrote: :Dear team, : :This patch makes 'unknown' well-known communities more of a first-class :citizen. : :A powerful property of well-known communities is that (often) operators :can implement the feature associated with a given

Re: [PATCH 3/3] openbgpd: Add well-known community GRACEFUL_SHUTDOWN

2017-06-25 Thread Peter Hessler
OK On 2017 Jun 23 (Fri) at 16:02:13 +0200 (+0200), Job Snijders wrote: :Dear team, : :This patch adds support for the "graceful shutdown" well-known :community as described in draft-ietf-grow-bgp-gshut. : :An example implementation would be to add the following to your :bgpd.conf: : :match

Re: [PATCH 1/3] openbgpd: Allow localpref of zero

2017-06-25 Thread Peter Hessler
OK On 2017 Jun 23 (Fri) at 16:01:16 +0200 (+0200), Job Snijders wrote: :Dear team, : :The lowest valid BGP LOCAL_PREF is 0, allowing bgpd to set 0 too will :accomodate interopability. : :Kind regards, : :Job : :--- a/usr.sbin/bgpd/parse.y :+++ b/usr.sbin/bgpd/parse.y :@@ -1988,7 +1988,7 @@

Re: tcpdump: enable some more bgp info

2017-05-30 Thread Peter Hessler
On 2017 May 30 (Tue) at 10:21:17 +0200 (+0200), Michal Mazurek wrote: :On 12:15:06, 29.05.17, Job Snijders wrote: :> perhaps add a comment like /* RFC 6608 */ above the below: : :Right, it will make it more consistent. : :> > +static const char *bgpnotify_minor_fsm[] = { :> > + NULL, "In OpenSent

Re: bgpd on other rdomains

2017-05-28 Thread Peter Hessler
looks fine to me, OK On 2017 May 28 (Sun) at 19:12:34 +0200 (+0200), Sebastian Benoit wrote: :Hi, : :testing hennigs diff i found having to specify the socket on the command :line annoying: : : bgpctl -s /var/run/rdomain123.bgpd.sock sh rib : :srly? : :I figure when you are debuging things in

Re: Throttle bgpd's RDE if the client is slow

2017-05-27 Thread Peter Hessler
This improves our AMS-IX border router (200 configured sessions, plus Route Servers) starting performance. >From 45 minutes to bring everyone up, to 3 minutes, and bgpctl stays acceptably responsive during the thundering herd. Memory pressure is also far more relaxed. OK On 2017 May 26 (Fri)

[bgpd] enforce local-as no

2017-05-27 Thread Peter Hessler
Allow us to receive our own AS paths from a neighbor. Like several of the related diffs, this also invites dragons and grues into your network. Probably needs the most love in the man page, as usual ;). OK? Index: bgpd.conf.5 ===

[bgpd] local-as for use in filters

2017-05-27 Thread Peter Hessler
Right now, we have 'neighbor-as' that can be used as magic syntax sugar for filter rules. I want to have magic syntax sugar for 'local-as', which expands to our ASN. It already plays nicely with the local-as diff I sent, and can be committed in either order. match in from $neighbor set

Re: bgpd: local-as

2017-05-27 Thread Peter Hessler
On 2017 May 27 (Sat) at 11:05:30 +0200 (+0200), Peter Hessler wrote: :On 2016 Sep 26 (Mon) at 20:09:13 +0200 (+0200), Peter Hessler wrote: ::We already have a local AS saved per peer. Let's use it. This is very ::useful when one needs to change their local AS. :: ::" ::neighbor 192.

Re: bgpd: local-as

2017-05-27 Thread Peter Hessler
On 2016 Sep 26 (Mon) at 20:09:13 +0200 (+0200), Peter Hessler wrote: :We already have a local AS saved per peer. Let's use it. This is very :useful when one needs to change their local AS. : :" :neighbor 192.0.2.1 { : remote-as 65530 : local-as 131000 :} :" : :OK? : Upd

Re: [bgpd] RFC 7607 Codification of AS 0 Processing

2017-05-26 Thread Peter Hessler
On 2017 May 26 (Fri) at 22:15:37 +0200 (+0200), Sebastian Benoit wrote: :diff is ok, but please consider this: : :i think we should limit the list to the features we support so :that users can check if a certain something should work or not. : :this is not a feature, this is a protocol

Re: [bgpd] RFC 7607 Codification of AS 0 Processing

2017-05-26 Thread Peter Hessler
On 2017 May 26 (Fri) at 20:01:00 +0200 (+0200), Peter Hessler wrote: :Apropos of "I found it", I implemented support for RFC 7607. It's a :super short RFC, but basically it forbids use of AS 0 anywhere. : :OK? : : Fixed some denglish in an error message, mention the RFC in th

[bgpd] RFC 7607 Codification of AS 0 Processing

2017-05-26 Thread Peter Hessler
Apropos of "I found it", I implemented support for RFC 7607. It's a super short RFC, but basically it forbids use of AS 0 anywhere. OK? Index: parse.y === RCS file: /cvs/openbsd/src/usr.sbin/bgpd/parse.y,v retrieving revision

Re: OpenBGPd: expand rib list (updated for r1.295)

2017-05-26 Thread Peter Hessler
Also looks good to me, OK On 2017 Jan 20 (Fri) at 21:19:22 +0100 (+0100), Denis Fondras wrote: :Hello, : :Here is a patch to expand RIB names in rules. When playing with multi-RIBs, it :allows to simplify ruleset. : : Ex : :# cat /etc/bgpd.conf :[...] :peer_ribs = "{ m1, m2, m3 }" :deny rib m2

Re: [patch/openbgpd] make man example works

2017-05-26 Thread Peter Hessler
looks good to me, OK On 2017 May 21 (Sun) at 19:36:36 +0200 (+0200), Denis Fondras wrote: :Hi, : :bgpd.conf manual has an example with : : :good="{ 192.168.0.0/16, 172.16.0.0/12, 10.0.0.0/8 }" :bad="{ 224.0.0.0/4 prefixlen >= 4, 240.0.0.0/4 prefixlen >= 4 }" :ugly="{ 127.0.0.1/8, 169.254.0.0/16

Re: inteldrm: setup backlight pwm alternate increment on backlight enable

2017-02-10 Thread Peter Hessler
On 2017 Feb 10 (Fri) at 11:52:20 +1100 (+1100), Jonathan Gray wrote: :On Thu, Feb 09, 2017 at 06:39:13PM -0600, joshua stein wrote: :> I have no idea why there are chickens involved, but this fixes the :> problem on at least the MacBookAir7,1 (Broadwell) where upon S3 :> resume, the backlight

preliminary diff to add BFD support to OpenBGPD

2017-01-25 Thread Peter Hessler
Here is the inital support for OpenBGPD to understand BFD messages. With this, when BFD detects failure, it sets the nexthop for that neighbor to Invalid. Conversely, when BFD sets the state to up, it removes that flag, setting the nexthop to Valid. # when BFD state to 203.0.113.9 is Up $

Re: let bfd survive link-down

2017-01-23 Thread Peter Hessler
On 2017 Jan 24 (Tue) at 02:38:54 +0100 (+0100), Peter Hessler wrote: :When an interface loses link, we delete all directly connected and :cloned routes. However, this means we also lose any BFD configuration :on those routes. : :Surviving link-down is pretty much mandatory for BFD to work. : :So

let bfd survive link-down

2017-01-23 Thread Peter Hessler
When an interface loses link, we delete all directly connected and cloned routes. However, this means we also lose any BFD configuration on those routes. Surviving link-down is pretty much mandatory for BFD to work. So instead, I bypass the route deletion, and clean up the link-local gateway

Re: BFD: route get and route monitor

2017-01-19 Thread Peter Hessler
On 2017 Jan 19 (Thu) at 06:26:25 +0100 (+0100), Peter Hessler wrote: :On 2016 Dec 17 (Sat) at 14:05:40 +0100 (+0100), Peter Hessler wrote: ::On 2016 Sep 30 (Fri) at 10:16:19 +0200 (+0200), Peter Hessler wrote: :::This diff makes route get and route monitor work. sockaddr_bfd is so we :::can play

Re: BFD: route get and route monitor

2017-01-18 Thread Peter Hessler
On 2016 Dec 17 (Sat) at 14:05:40 +0100 (+0100), Peter Hessler wrote: :On 2016 Sep 30 (Fri) at 10:16:19 +0200 (+0200), Peter Hessler wrote: ::This diff makes route get and route monitor work. sockaddr_bfd is so we ::can play like the other RTAX_* indexes in rti_info of route messages. :: In route

Re: libressl symbols

2017-01-03 Thread Peter Hessler
this change as well. : :+1 from me for exposing the API - I recently also ran into it but didn't speak up because my use case was probably not important enough. : :Reyk : : :> Am 02.01.2017 um 16:29 schrieb Peter Hessler <phess...@theapt.org>: :> :> Looks like when libcrypto was convered

libressl symbols

2017-01-02 Thread Peter Hessler
Looks like when libcrypto was convered to use a Symbol map, some functions were not included. This change lets py-openssl be loaded by python processes. I did not include the minor version bump, as there might be more issues. Index: lib/libcrypto/Symbols.list

Re: BFD: route get and route monitor

2016-12-28 Thread Peter Hessler
On 2016 Dec 23 (Fri) at 16:57:27 +0100 (+0100), Hrvoje Popovski wrote: :On 21.12.2016. 23:15, Sebastian Benoit wrote: :>> Hi, :>> :>> it seems that bfd is working with Force10 S4810 and Extreme Networks :>> x460 switches. I can test it with cisco c6k5 if you want? :> :> Hei, :> :> i'm sure

Re: BFD: route get and route monitor

2016-12-17 Thread Peter Hessler
On 2016 Sep 30 (Fri) at 10:16:19 +0200 (+0200), Peter Hessler wrote: :This diff makes route get and route monitor work. sockaddr_bfd is so we :can play like the other RTAX_* indexes in rti_info of route messages. : :OK? Updated output, requested by Theo. A normal get will show just the bfd

Re: BFD: route get and route monitor

2016-12-13 Thread Peter Hessler
On 2016 Dec 05 (Mon) at 15:39:31 +0100 (+0100), Peter Hessler wrote: :On 2016 Sep 30 (Fri) at 10:16:19 +0200 (+0200), Peter Hessler wrote: ::This diff makes route get and route monitor work. sockaddr_bfd is so we ::can play like the other RTAX_* indexes in rti_info of route messages. :: ::OK

Re: BFD: route get and route monitor

2016-12-05 Thread Peter Hessler
On 2016 Sep 30 (Fri) at 10:16:19 +0200 (+0200), Peter Hessler wrote: :This diff makes route get and route monitor work. sockaddr_bfd is so we :can play like the other RTAX_* indexes in rti_info of route messages. : :OK? : : :$ route -n monitor :got

match rules for spamlogd?

2016-11-01 Thread Peter Hessler
the line checking for PF_PASS has not changed since 2006, which predates the existence of match rules in PF. We check for permissions in one place, but if they are (eventually) permitted, we want spamlogd to handle the packet. Is there a better way than checking the PF_MATCH state? Is there an

RFC 7606 fixes in openbgpd

2016-10-31 Thread Peter Hessler
draft-ietf-idr-optional-transitive-00 became RFC 7606, and updated a few things. - PARTIAL flag is no longer considered protection - sometimes, 0 len is invalid as well OK? Index: rde.c === RCS file:

Re: update net/py-pcapy

2016-10-30 Thread Peter Hessler
On 2016 Oct 30 (Sun) at 15:17:34 +0100 (+0100), Jeremie Courreges-Anglas wrote: :Peter Hessler <phess...@openbsd.org> writes: : :> I would like to use pcapy in a python3 module, so we need to update it. :> :> However, when I run the test program, I get the following error: :>

Re: step missing from "2016/10/14" followig -current?

2016-10-30 Thread Peter Hessler
On 2016 Oct 30 (Sun) at 12:28:36 +0100 (+0100), Ingo Schwarze wrote: :> Everybody would have had, had it been included in /etc/skel/.cvsrc :^) :> Worth adding? : :I (mildly) oppose that. Providing customization files by default :is an oxymoron that provokes exactly the problems seen here. People

show bgp unknown attributes in bgpctl and tcpdump

2016-10-14 Thread Peter Hessler
While working on Large Communities, I realized that I would really like to easily see and know when I am receiving "unknown" attributes. Patch for tcpdump is easy, if it doesn't have a decoder, just print the type and length. You can use -X to see the raw hex. Path for bgpctl is a bit more

Re: bgpd draft-ietf-idr-large-community

2016-10-13 Thread Peter Hessler
On 2016 Oct 11 (Tue) at 00:00:53 +0200 (+0200), Peter Hessler wrote: :Here is an initial implementation of draft-ietf-idr-large-community for :OpenBGPD. I can connect and exchange routes with these attributes :against exabgp. : :Normal communities are two 16bit numbers. With the addition

bgpd draft-ietf-idr-large-community

2016-10-10 Thread Peter Hessler
Here is an initial implementation of draft-ietf-idr-large-community for OpenBGPD. I can connect and exchange routes with these attributes against exabgp. Normal communities are two 16bit numbers. With the addition of 32bit ASNs, those will not work if you wish to control one of them. Large

BFD: route get and route monitor

2016-09-30 Thread Peter Hessler
This diff makes route get and route monitor work. sockaddr_bfd is so we can play like the other RTAX_* indexes in rti_info of route messages. OK? $ route -n monitor got message of size 128 on Wed Sep 28 21:35:32 2016 RTM_BFD: bidirectional forwarding

Re: traceroute(8): drop to _traceroute user

2016-09-27 Thread Peter Hessler
On 2016 Sep 27 (Tue) at 11:12:40 + (+), Florian Obser wrote: :On Tue, Sep 27, 2016 at 11:32:00AM +0100, Stuart Henderson wrote: :> I just discovered an implication of the ping/traceroute changes: :> bgplg users now need pwd.db in /var/www/etc. :> : :Ooops. I guess this is a documentation

Re: util.c patch res_comp.c patch

2016-09-26 Thread Peter Hessler
On 2016 Sep 26 (Mon) at 14:31:04 -0500 (-0500), Edgar Pettijohn wrote: :On 16-09-26 09:26:04, Gilles Chehade wrote: :> On Sun, Sep 25, 2016 at 11:20:39AM -0500, Edgar Pettijohn wrote: :> > In my testing it did not, but I could be wrong. :> > :> > On 16-09-25 17:56:42, Eric Faurot wrote: :> > > On

bgpd: local-as

2016-09-26 Thread Peter Hessler
We already have a local AS saved per peer. Let's use it. This is very useful when one needs to change their local AS. " neighbor 192.0.2.1 { remote-as 65530 local-as 131000 } " OK? Index: parse.y === RCS file:

  1   2   >