Re: PATCH: better prime testing for libressl

2022-07-12 Thread t...@openbsd.org
> I'm suggesting you a diff against master of the implementation of the > Baillie-PSW algorithm for primality testing. The revised version of this is now committed. Many thanks again for your work! https://marc.info/?l=openbsd-cvs&m=165769382419130&w=2

ts(1): parse input format string only once

2022-07-12 Thread Scott Cheloha
We reduce overhead if we only parse the user's format string once. To achieve that, this patch does the following: - Move "format" into main(). We don't need it as a global anymore. - Move buffer allocation into fmtfmt(). As claudio@ mentioned in a different thread, we need at most (3 * strl

Re: amd64 serial console changes, part 2

2022-07-12 Thread Denis Fondras
Le Wed, Jul 06, 2022 at 10:45:39PM +0200, Mark Kettenis a écrit : > Now that the kernel supports the extended BOOTARG_CONSDEV struct and > snaps with that change are out there, here is the diff that changes > the amd64 bootloaders to switch to the extended struct and provide the > parameters necess

Re: bgpd document add-path send

2022-07-12 Thread Jason McIntyre
On Tue, Jul 12, 2022 at 05:19:17PM +0200, Claudio Jeker wrote: > > Updated diff below including changes suggested by jmc@ > -- > :wq Claudio > i think it reads ok now. but i have one more comment: > Index: bgpd.8 > === > RCS file:

Re: bgpd document add-path send

2022-07-12 Thread Claudio Jeker
On Mon, Jul 11, 2022 at 08:18:07PM +0100, Stuart Henderson wrote: > On 2022/07/11 19:12, Claudio Jeker wrote: > > This is my try at documenting the just added add-path bits. > > > > -- > > :wq Claudio > > > > +per prefix. > > +Which paths are sent depends on the mode: > > +.Pp > > +.Bl -tag -wid

dhcpleased(8): close unneeded bpf FDs

2022-07-12 Thread Florian Obser
When the autoconf flag flaps around we might end up with multiple bpf FDs in flight. Things then get confusing. The kernel tells us we can read from the bpf FD but the data is actually "on the other FD", so read(2) returns 0. Found the hard way by, and patiently debugged with weerd@ One way to tr

Re: PATCH: better prime testing for libressl

2022-07-12 Thread t...@openbsd.org
Here is an updated diff that addresses some of the changes suggested and requested by jsing. The main change is that we now pass an is_prime out parameter through and distinguish between goto done and goto err. All functions now have boolean return values. In addition, some functions have been re

Re: What is ieee80211com.ic_max_nnodes?

2022-07-12 Thread Stefan Sperling
On Mon, Jul 11, 2022 at 03:13:58PM -0400, Farhan Khan wrote: > On Mon, Jul 11, 2022, at 2:24 PM, Stefan Sperling wrote: > Thank you so much for your prompt reply! > > > In AP mode, max nodes effectively sets a limit on how many clients can > > be connected concurrently. Because athn(4) USB firmwar