route: improve inet6_makenetandmask

2018-05-26 Thread Klemens Nanni
inet6_makenetandmask() parses the provided prefix length `plen' twice: first from inside prefixlen() which sets the mask, then right again doing almost the same dance to find out which bits to zero in the provided address. But once prefixlen() set so_mask, we can just use it to actually mask the

[diff] missing quotes in tls_peer_cert_chain_pem(3)

2018-05-26 Thread Jack Burton
Just noticed this in passing while working on something else. Index: lib/libtls/man/tls_conn_version.3 === RCS file: /cvs/src/lib/libtls/man/tls_conn_version.3,v retrieving revision 1.7 diff -u -p -r1.7 tls_conn_version.3 ---

Re: [diff] missing quotes in tls_peer_cert_chain_pem(3)

2018-05-26 Thread Ingo Schwarze
Hi Jack, Jack Burton wrote on Sat, May 26, 2018 at 08:27:54PM +0930: > Just noticed this in passing while working on something else. Committed, thanks. Ingo > Index: lib/libtls/man/tls_conn_version.3 > === > RCS file:

[diff] httpd: pass through basic tls peer info to fcgi

2018-05-26 Thread Jack Burton
This diff adds three new TLS_PEER_* fastcgi variables: ISSUER, SERIAL & SUBJECT. That seems the logical next step in making tls client certs usable for authorisation & accounting. Last week's commit (thanks Joel!) took care of authentication. The cert subject on its own should suffice for the

Re: [Patch] mg(1) set column-number-mode on by default

2018-05-26 Thread Leonid Bobrov
On Sat, May 26, 2018 at 09:49:22PM +0200, Florian Obser wrote: > Not OK. > > With column-number-mode on mg has to redraw the modeline (maybe even > the whole window?) on every cursor move. Try it on a 9600 serial > console. > Oh, I forgot we use slow hardware. I didn't know it is necessary to

[Patch] mg(1) set column-number-mode on by default

2018-05-26 Thread Leonid Bobrov
>From https://marc.info/?t=15272488061=1=2 If line-number-mode is on by default, I don't get what is the problem with these "slow serial lines", plus without this patch below we have confusing tutorial for new users: Index: display.c

Re: Automatic configuration of /etc/ttys in installer

2018-05-26 Thread Mark Kettenis
> Date: Tue, 8 May 2018 08:51:14 +0200 (CEST) > From: Mark Kettenis > > After my recent changes to armv7 and arm64 the installer and > single-user mode are usable with a non-standard serial console speed. > However, the installer will still install an /etc/ttys file with

Re: [Patch] mg(1) set column-number-mode on by default

2018-05-26 Thread Florian Obser
Not OK. With column-number-mode on mg has to redraw the modeline (maybe even the whole window?) on every cursor move. Try it on a 9600 serial console. With line-number-mode on the redraw is only necessary when a cursor move changes the line number. Happens considerably less often. Also note how

Re: route: improve inet6_makenetandmask

2018-05-26 Thread Denis Fondras
On Sat, May 26, 2018 at 12:54:03PM +0200, Klemens Nanni wrote: > inet6_makenetandmask() parses the provided prefix length `plen' twice: > first from inside prefixlen() which sets the mask, then right again > doing almost the same dance to find out which bits to zero in the > provided address. > >

add clock_nanosleep(2)

2018-05-26 Thread Scott Cheloha
Hi, Here's a first attempt at adding clock_nanosleep(2). Its use cases are admittedly more niche than nanosleep(2), and indeed there are just a handful of spots in base where I think it would be an improvement over existing code, but it's definitely an improvement, particularly in simplicity,

[PATCH] Define IMSG_DATA_SIZE() in imsg.h

2018-05-26 Thread Consus
To reduce code duplication a little bit. diff --git a/lib/libutil/imsg.h b/lib/libutil/imsg.h index 8bf9414789b..8436e157b38 100644 --- a/lib/libutil/imsg.h +++ b/lib/libutil/imsg.h @@ -23,6 +23,7 @@ #define IBUF_READ_SIZE 65535 #define IMSG_HEADER_SIZE sizeof(struct imsg_hdr)

Re: smtpd.conf new grammar

2018-05-26 Thread Leighton Sheppard
On Thu, May 24, 2018 at 02:18:56PM +0200, Gilles Chehade wrote: > Hi, > > I have just committed a major change in smtpd that'll require smtpd.conf > to be rewritten before your update to the new code. > > The new grammar is not TOO different from the former one, a lot of stuff > remains exactly

Re: [Patch] mg(1) set column-number-mode on by default

2018-05-26 Thread Brian Callahan
Hi Florian -- On 5/26/2018 3:49 PM, Florian Obser wrote: > Not OK. > > With column-number-mode on mg has to redraw the modeline (maybe even > the whole window?) on every cursor move. Try it on a 9600 serial > console. > > With line-number-mode on the redraw is only necessary when a cursor > move

Re: [Patch] mg(1) set column-number-mode on by default

2018-05-26 Thread Leonid Bobrov
> I already suggested exactly this: > https://marc.info/?l=openbsd-tech=152727379111353=2 > This tutorial doesn't mention using different modes, so it is unclear to new user how to switch to that mode. I'm extending your diff to make less confusions (plus date needs update, I'm using my local

[patch] www faq/current.html - validation

2018-05-26 Thread lists
Tue, 22 May 2018 02:43:22 -0600 (MDT) Stuart Henderson > CVSROOT: /cvs > Module name: www > Changes by: st...@cvs.openbsd.org 2018/05/22 02:43:22 > > Modified files: > faq: current.html > > Log message: > mention php default version switch > Hi

eoip(4): MikroTik Ethernet over IP support

2018-05-26 Thread David Gwynne
this implements MikroTiks Ethernet over IP protocol support. The Mikrotik protocol is basically GRE, so this is implemented as eoip(4) as (yet another) part of if_gre. the main differences between egre and eoip is that eoip uses gre version 1 (not 0) and 0x6400 as the protocol identifier (not

Re: route: improve inet6_makenetandmask

2018-05-26 Thread Klemens Nanni
On Sat, May 26, 2018 at 11:49:29PM +0200, Denis Fondras wrote: > Not related to this diff but RFC2374 has been made obsolete by RFC3587 for > some > years : "implementations should not make any assumptions about 2000::/3 being > special". I think we can simplify this "else if" :) Agreed, although