Re: [PATCH] Update default QoS markers for ssh

2018-04-10 Thread Ian McWilliam
Just for the record the latest OpenBSD snapshot with the changed ssh / sshd causes ssh connections to fail across a VMWare Fusion 10 NAT network. ssh into the box you get a banner sent before the connection is closed. ssh out of the like updating a CVS tree gets you... Obtaining OpenBSD-curr

tmux fix when renaming session with no client attached

2018-04-10 Thread Ryan Freeman
Hey, After upgrading OpenBSD 6.2 -> 6.3, a program I am building for $DAYJOB started malfunctioning. Basically, we use tmux to manage running sessions of this program, which does automated work on things with console ports. The session is started in a detached state with temp session name derive

Re: umsm(4) support for Vodafone k3772

2018-04-10 Thread Jeremie Courreges-Anglas
On Tue, Apr 10 2018, Björn Ketelaars wrote: > I received a Vodafone k3772 USB modem, which is not supported out of the > box in current. dmesg: > > umass0 at uhub3 port 2 configuration 1 interface 0 "Vodafone (Huawei) > Vodafone Mobile Broadband (Huawei)" rev 2.00/1.02 addr 6 > umass0: using SCSI

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

2018-04-10 Thread Klemens Nanni
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 manuals denote the respective argument as `rtable'. Looking for use cases of rdomain(4), `man -k ar~rtable' does not list

Re: subr_autoconf: allow _attach to fail? w/no void2int churn option

2018-04-10 Thread Theo de Raadt
>On Mon, Apr 09, 2018 at 11:11:22AM -0600, Theo de Raadt wrote: >> I think this approach is wrong, insane, and fragile. DVF_ACTIVE >> doesn't work precisely that way. > >Yes, it's a hack, but i don't see it as fragile, nor insane, >and i agree something better is great, but it does work exactly >a

Re: subr_autoconf: allow _attach to fail? w/no void2int churn option

2018-04-10 Thread Artturi Alm
On Mon, Apr 09, 2018 at 11:11:22AM -0600, Theo de Raadt wrote: > I think this approach is wrong, insane, and fragile. DVF_ACTIVE > doesn't work precisely that way. Yes, it's a hack, but i don't see it as fragile, nor insane, and i agree something better is great, but it does work exactly as i wan

Stop ping telling world its pid

2018-04-10 Thread Vadim Zhukov
Hi all! While working on home job for students, I've come across two questionable thingies in ping.c: 1. It sends process PID (well, last 16 bits) to the network. Maybe I'm a bit paranoid, but this looks like bad idea for me. I understand that this worked good when PIDs were 16-bit limited,

Re: httpd: listen on all IPv4 and IPv6 addresses for "listen on *"

2018-04-10 Thread Sebastian Benoit
Florian Obser(flor...@openbsd.org) on 2018.04.10 16:50:14 +0200: > Theo pointed out that this breaks our example config: > > /etc/examples/httpd.conf:13: server "example.com" defined twice > > The problem is that * now means v4 and v6 and we have a listen on :: > in there, so we are listening twi

umsm(4) support for Vodafone k3772

2018-04-10 Thread Björn Ketelaars
I received a Vodafone k3772 USB modem, which is not supported out of the box in current. dmesg: umass0 at uhub3 port 2 configuration 1 interface 0 "Vodafone (Huawei) Vodafone Mobile Broadband (Huawei)" rev 2.00/1.02 addr 6 umass0: using SCSI over Bulk-Only scsibus4 at umass0: 2 targets, initiator

Style fixes for usr.bin/who/who.c

2018-04-10 Thread Alessandro Gallo
Hello, I sent this same diff to @tech a few days ago, but I think it was rejected since the patch was added as an attachment. I apologize if you already received this. This diff removes some white spaces/tabs and fixes a few inconsistencies in the formatting style. There is no change in binary

diff for usr.bin/mg/fileio.c

2018-04-10 Thread Han Boetes
I got a problem report from Mark Willson: "I recently installed mg (via the Debian package) under WSL on Windows 10. I found that the 'backup-to-home-directory' option didn't work. The cause of this appears to be that getlogin under WSL returns NULL, probably due to my use of wslt

Re: try to map 64-bit mem space first

2018-04-10 Thread Ted Unangst
Mark Kettenis wrote: > We should allways use mmio instead of io if possible. The cascading > if statements are a bit ugly, but I can't come up with a better solution. mapped = 0; if (pcimap() == 0) mapped = 1; if (!mapped && pcimap() == 0) m

Re: No FRELE() in finishdup

2018-04-10 Thread Alexander Bluhm
On Tue, Apr 10, 2018 at 01:05:57PM +0200, Martin Pieuchot wrote: > Document that we're using the current reference instead of incrementing > then decrementing the refcount in finishdup(). Could finishdup() kassert that (fp->f_count > 0) ? > Ok? OK bluhm@ > Index: kern/kern_descrip.c >

Re: Earlier FREF() for dupfdopen()

2018-04-10 Thread Alexander Bluhm
On Tue, Apr 10, 2018 at 01:00:44PM +0200, Martin Pieuchot wrote: > Instead of incrementing `f_count' directly, we'll use the reference that > will be returned by fd_getfile(9). For that call FREF(9) earlier. > > ok? OK bluhm@ > Index: kern/kern_descrip.c > ==

Re: httpd: listen on all IPv4 and IPv6 addresses for "listen on *"

2018-04-10 Thread Florian Obser
Theo pointed out that this breaks our example config: /etc/examples/httpd.conf:13: server "example.com" defined twice The problem is that * now means v4 and v6 and we have a listen on :: in there, so we are listening twice on any v6 address. I think the best way forward is an entry to current.ht

Re: Multiple RTCs

2018-04-10 Thread Mark Kettenis
> Date: Tue, 10 Apr 2018 15:57:30 +0300 > From: Artturi Alm > > On Sat, Apr 07, 2018 at 08:39:43PM +0200, Mark Kettenis wrote: > > I have an RK3399 system that has two RTCs. One of those is the RTC > > integrated on the RK808 PMIC that is a companion chip to the RK3399. > > The second one is an

Re: Multiple RTCs

2018-04-10 Thread Artturi Alm
On Sat, Apr 07, 2018 at 08:39:43PM +0200, Mark Kettenis wrote: > I have an RK3399 system that has two RTCs. One of those is the RTC > integrated on the RK808 PMIC that is a companion chip to the RK3399. > The second one is an ISL1208 I2C chip. Only the ISL1208 is battery > powered, so obviously w

No FRELE() in finishdup

2018-04-10 Thread Martin Pieuchot
Document that we're using the current reference instead of incrementing then decrementing the refcount in finishdup(). Ok? Index: kern/kern_descrip.c === RCS file: /cvs/src/sys/kern/kern_descrip.c,v retrieving revision 1.147 diff -u

Earlier FREF() for dupfdopen()

2018-04-10 Thread Martin Pieuchot
Instead of incrementing `f_count' directly, we'll use the reference that will be returned by fd_getfile(9). For that call FREF(9) earlier. ok? Index: kern/kern_descrip.c === RCS file: /cvs/src/sys/kern/kern_descrip.c,v retrieving re

Re: Adding current bandwidth to ftp(1)

2018-04-10 Thread Stuart Henderson
On 2018/04/09 09:27, Matthias Schmidt wrote: > Hi Christian, > > On 08.04.2018 22:42, Christian Barthel wrote: > > Hello, > > > > i am often sitting behind a very slow internet link and thought, it > > might be useful to show the current bandwidth while downloading > > something with ftp(1). > >