Enable TCP ECN by default (for inbound)

2016-10-07 Thread David Hill
Hello - Many operating systems out there are starting to enable TCP ECN by default, most inbound-only. Linux, FreeBSD, Apple MacOS and iOS. This diff mimicks the FreeBSD diff found at http://marc.info/?l=freebsd-commits-all=146369644516347=2 It modifies the net.inet.tcp.ecn from an off and on

Re: Fix boundary issue in chacha code

2016-10-07 Thread Kinichiro Inoguchi
Sorry for my misunderstanding, and thanks for teaching me. I had read C99 standard document. http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1124.pdf On p.130 6.7.8 Initialization "32 EXAMPLE 8 The declaration" says, - char s[] = "abc", t[3] = "abc"; defines ‘‘plain’’ char array

refactor rtsock.c a bit

2016-10-07 Thread Claudio Jeker
I want to make route_output and route_input and a few other things in rtsock.c less hostile so here is a refactoring of the code. Main goal is to make it clearer how the return packet is generated. -- :wq Claudio Index: net/rtsock.c

less goto in raw_usrreq.c

2016-10-07 Thread Claudio Jeker
Same same but one line of code less and no more goto. OK? -- :wq Claudio Index: net/raw_usrreq.c === RCS file: /cvs/src/sys/net/raw_usrreq.c,v retrieving revision 1.24 diff -u -p -r1.24 raw_usrreq.c --- net/raw_usrreq.c5 Sep

Re: httpd(8)/proc.c: use less fds on startup

2016-10-07 Thread Bob Beck
This is now working on www.openbsd.org. I upgraded my 6.0 system to current today off the latest snap and httpd would not start, same problem. This diff lets current httpd start again. ok beck@ On Tue, Oct 04, 2016 at 11:54:37PM +0200, Rafael Zalamena wrote: > On Tue, Oct 04, 2016 at

libX11 ks_tables.h rebuild

2016-10-07 Thread Martin Natano
ks_tables.h is always considered out of date due to the forced rebuild of the makekeys util. This means it's also rebuilt during install. First as root during build, later by the BUILDUSER during release, which won't be able to rewrite it, because it's now owned by root. With this result:

libGLw/libexpoy: generate pkg-config files during build

2016-10-07 Thread Martin Natano
Generate the pkg-config files at build time, otherwise we might run into permission issues with noperm release builds. While there properly clean up glw.pc. Ok? natano Index: lib/libGLw/Makefile === RCS file:

Re: locale in sort(1)

2016-10-07 Thread Todd C. Miller
On Fri, 07 Oct 2016 12:39:18 +0200, Jan Stary wrote: > The sort(1) manpage mentions the LC_* environment variables > and how they affect sorting and efficiency, but we only > support LC_CTYPE, right? Would it be an omprovement > to remove these from the manpage? The code supports collation based

Re: Fix boundary issue in chacha code

2016-10-07 Thread Ted Unangst
Kinichiro Inoguchi wrote: > I think this 16 bytes string assignment has boundary issue. > > static const char sigma[16] = "expand 32-byte k"; > > I found this when I tried to build libressl-portable with MSVC on Windows. another broken compiler? the above line is perfectly valid C.

Re: add MCS support to radiotap

2016-10-07 Thread Stefan Sperling
On Fri, Oct 07, 2016 at 03:28:19PM +0200, Stefan Sperling wrote: > Currently tcpdump shows "0 Mbit/s" for any frame sent with 11n HT MCS. > To make progress easier, I'd like to see which MCS are used on the air, > by any device. > > The change below matches what FreeBSD did to pass an MCS index

Re: cdce(4): Remove zaurus specific code

2016-10-07 Thread Mark Kettenis
> Date: Fri, 7 Oct 2016 16:32:35 +0200 > From: Frederic Cambus > > Hi tech@, > > It seems there are still some leftovers from the zaurus port removal. > > Comments? OK? Not ok. This is support for the zaurus as a usb device attached to an OpenBSD machine. Perhaps the

cdce(4): Remove zaurus specific code

2016-10-07 Thread Frederic Cambus
Hi tech@, It seems there are still some leftovers from the zaurus port removal. Comments? OK? Index: sys/dev/usb/if_cdce.c === RCS file: /cvs/src/sys/dev/usb/if_cdce.c,v retrieving revision 1.71 diff -u -p -r1.71 if_cdce.c ---

Re: snmpd source address

2016-10-07 Thread Jeremie Courreges-Anglas
Jeremie Courreges-Anglas writes: > Jeremie Courreges-Anglas writes: > >> j...@wxcvbn.org (Jeremie Courreges-Anglas) writes: >> >>> SNMP uses UDP and snmpd listens on a single address. This means that >>> you can have issues with the source address of the

add MCS support to radiotap

2016-10-07 Thread Stefan Sperling
Currently tcpdump shows "0 Mbit/s" for any frame sent with 11n HT MCS. To make progress easier, I'd like to see which MCS are used on the air, by any device. The change below matches what FreeBSD did to pass an MCS index via radiotap. This simply writes the MCS index into a previously unused

iwm ack rate mapping

2016-10-07 Thread Stefan Sperling
Imre Vadasz pointed out that rate sets managed by net80211 are sorted by effective data rate speed, while the iwm_rates array sorts CCK rates (1 - 11 Mbit/s) before OFDM rates (6Mbit/s - 54Mbit/s). rate set (11g): 1, 2, 5.5, 6, 9, 11, 12, 18, 24, 36, 54 iwm_rates: 1, 2, 5.5, 11, 6, 9, 12,

locale in sort(1)

2016-10-07 Thread Jan Stary
The sort(1) manpage mentions the LC_* environment variables and how they affect sorting and efficiency, but we only support LC_CTYPE, right? Would it be an omprovement to remove these from the manpage? Jan Index: sort.1 ===

Re: athn: allow lower tx retry rates with RTS

2016-10-07 Thread Stefan Sperling
On Thu, Oct 06, 2016 at 06:51:04PM +0200, Stefan Sperling wrote: > athn(4) has a hack which disables lower Tx retry rates if RTS is used. > > I don't understand why this was added. Perhaps the assumption was > that RTS will prevent transmission failures outright. I believe I've found the reason