run nd6_expire when needed

2017-08-03 Thread Florian Obser
as mpi pointed out in "nd6 address expiration & NET_LOCK() contention" we run nd6_expire every second. That seems a bit silly considering that we normally have a pltime of a day. With a bit of math we can work out when the timer should fire when we set pltime/vltime and when we walk the list in n

Re: caesar(6) documents incorrect frequencies

2017-08-03 Thread Daniel Hartmeier
Maybe you mean Etaoin Shrdlu, it has a fascinating story https://archive.org/details/FarewellEtaoinShrdlu

Re: Kernel compilation fail with clang.

2017-08-03 Thread Olivier Antoine
Thanks Jonathan, that was it. For unknown reason that file was not in sync. On Thu, Aug 3, 2017 at 2:55 AM, Jonathan Gray wrote: > On Wed, Aug 02, 2017 at 09:06:00PM +0200, Olivier Antoine wrote: > > Hi, > > > > I may have missed something but I'm unable to compile the kernel since (I > > think)

Re: clang ld.so regress failures

2017-08-03 Thread Mark Kettenis
> Date: Tue, 1 Aug 2017 16:46:17 +0200 (CEST) > From: Mark Kettenis > > FAIL libexec/ld.so/constructor/prog1/prog1 > FAIL libexec/ld.so/constructor/prog2/prog2 > FAIL libexec/ld.so/initfirst/test2/prog1/prog1 > FAIL libexec/ld.so/initfirst/test2/prog2/prog2 > FAIL libexec/ld.so/init-env/prog/prog

Re: Intel I/O Module for Intel Server Boards Up for Grabs (for Free)

2017-08-03 Thread Tom Smyth
Hi Lads that is still up for grabs.. On 31 July 2017 at 12:00, Tom Smyth wrote: > Hello Lads and Ladies, > > If any of you have an Intel Server I have a Copper(RJ45 dual port > 10G I/O module that I cant use (because I only have SFP+ Based > 10G Switches) > Intel AXX10GBTWLIOM Dual 10GB Copper

Re: Fix libexec/ld.so/dlclose regress

2017-08-03 Thread Joerg Sonnenberger
On Wed, Aug 02, 2017 at 09:03:30PM +0200, Mark Kettenis wrote: > Couldn't convince clang not to inline duplicateFun() into bbTest2(). > Splitting things out in a seperate file avoids the issue. Fixes the > regression test. Have you tried the combiniation of noinline attribute with asm volatile(

delete rfc 1885 compat

2017-08-03 Thread Florian Obser
RFC 1885 was obsoleted nearly 20 years ago by 2463 which was obsoleted over 10 years ago. We are probably not going back. OK? diff --git netinet6/icmp6.c netinet6/icmp6.c index f998bfa0c18..82bc60fad1b 100644 --- netinet6/icmp6.c +++ netinet6/icmp6.c @@ -467,16 +467,10 @@ icmp6_input(struct mbuf

delete ICMP6_DST_UNREACH_NOTNEIGHBOR

2017-08-03 Thread Florian Obser
since nearly 20 years the correct spelling is ICMP6_DST_UNREACH_BEYONDSCOPE. OK? (I'll do a current.html eintry for pf.conf, but seriously, this has been obsoleted years before pf even existed.) diff --git sbin/pfctl/pfctl_parser.c sbin/pfctl/pfctl_parser.c index ff88383aed7..6373a3c095d 100644

Syspatch not clearing needed free space counter

2017-08-03 Thread trondd
I noticed, when applying multiple patches, I would eventually be told I was out of space on /. There was about 60M free which is plenty for a kernel and a copy. Rerunning syspatch would allow it to continue for a another handful of patches. Mucking about in checkfs(), it seems that the value of

Re: dhcpd: remove unused structs

2017-08-03 Thread Jeremie Courreges-Anglas
On Tue, Aug 01 2017, Rob Pierce wrote: > I can confirm that the following structs have not been used since at least > OpenBSD 4.9. From Edgar Pettijohn. > > Ok? ok Looks like youncould trim this file some more (untested): @@ -315,20 +290,6 @@ struct protocol { void (*handler)(struct pro

Re: less(1) - segmentation fault with '-g'

2017-08-03 Thread Anton Lindqvist
On Wed, Aug 02, 2017 at 09:39:25PM +0200, Anton Lindqvist wrote: > On Wed, Aug 02, 2017 at 08:46:26PM +0200, Martijn van Duren wrote: > > You're right. Maybe I should read up on my less. :-) > > > > OK martijn@ for the full diff. > > Thanks, committed. The fix has been merged upstream[1] as well

Re: dhcpd: remove unused structs

2017-08-03 Thread Rob
Yes, I was going to split it up, but can add that to my diff as well. Sent from my BlackBerry 10 smartphone on the Rogers network.   Original Message   From: Jeremie Courreges-Anglas Sent: Thursday, August 3, 2017 11:08 AM To: Rob Pierce Cc: tech@openbsd.org Subject: Re: dhcpd: remove unused struc

Re: delete ICMP6_DST_UNREACH_NOTNEIGHBOR

2017-08-03 Thread Florian Obser
sthen did a code search for me, thanks! nothing in ports uses this. On Thu, Aug 03, 2017 at 01:35:10PM +, Florian Obser wrote: > since nearly 20 years the correct spelling is > ICMP6_DST_UNREACH_BEYONDSCOPE. > > OK? > > (I'll do a current.html eintry for pf.conf, but seriously, this has > be

Re: mtrace: are you still running mrouted 3.6 on little-endian machines?

2017-08-03 Thread Florian Obser
is it a lack of mrouted 3.6 or the lack of little endian machines that's holding y'all back? On Fri, Jul 28, 2017 at 12:31:44PM +, Florian Obser wrote: > this can probably go. I wandered in there because clang says: > > /usr/src/usr.sbin/mtrace/mtrace.c:949:12: warning: taking the absolute v

Re: delete ICMP6_DST_UNREACH_NOTNEIGHBOR

2017-08-03 Thread Jeremie Courreges-Anglas
On Thu, Aug 03 2017, Florian Obser wrote: > sthen did a code search for me, thanks! > nothing in ports uses this. ok jca@ -- jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF DDCC 0DFA 74AE 1524 E7EE

[patch] Make escape character in cu(1) configurable

2017-08-03 Thread Bruno Flueckiger
Hi, Whenever I use cu(1) I miss the possibility to configure the escape character. Both ssh(1) and telnet(1) provide the option -e to change the escape character. So I created the diffs below to implement it. I think it's time to share it with you and ask for your feedback. Cheers, Bruno Index:

Re: caesar(6) documents incorrect frequencies

2017-08-03 Thread Landry Breuil
On Thu, Aug 03, 2017 at 11:20:15AM +0200, Daniel Hartmeier wrote: > Maybe you mean Etaoin Shrdlu, it has a fascinating story > > https://archive.org/details/FarewellEtaoinShrdlu Wow, just wow. Thanks for this piece of history :)

nsd 4.1.17

2017-08-03 Thread Florian Obser
lightly tested by me Tests, OKs? diff --git Makefile.in Makefile.in index 3391cd0d4b2..495160c0826 100644 --- Makefile.in +++ Makefile.in @@ -169,8 +169,11 @@ cutest:$(CUTEST_OBJ) $(LIBOBJS) udb-inspect: udb-inspect.o $(COMMON_OBJ) $(LIBOBJS) $(LINK) -o $@ udb-inspect.o $(COMMON_O

Re: Syspatch not clearing needed free space counter

2017-08-03 Thread Stuart Henderson
On 2017/08/03 09:55, trondd wrote: > I noticed, when applying multiple patches, I would eventually be told I > was out of space on /. There was about 60M free which is plenty for a > kernel and a copy. Rerunning syspatch would allow it to continue for a > another handful of patches. > > Mucking

Re: Syspatch not clearing needed free space counter

2017-08-03 Thread trondd
On Thu, August 3, 2017 1:09 pm, Stuart Henderson wrote: > On 2017/08/03 09:55, trondd wrote: >> I noticed, when applying multiple patches, I would eventually be told I >> was out of space on /. There was about 60M free which is plenty for a >> kernel and a copy. Rerunning syspatch would allow it

Re: Syspatch not clearing needed free space counter

2017-08-03 Thread Theo de Raadt
> I believe the clean ups were for data on disk. This problem seems to be > with the variable value in memory. My free disk space isn't changing, > just the free space syspatch thinks it needs. > > Also I am using the latest syspatch from CVS. > > # $OpenBSD: syspatch.sh,v 1.120 2017/08/02 05:5

Re: Syspatch not clearing needed free space counter

2017-08-03 Thread Stuart Henderson
On 2017/08/03 13:18, trondd wrote: > On Thu, August 3, 2017 1:09 pm, Stuart Henderson wrote: > > On 2017/08/03 09:55, trondd wrote: > >> I noticed, when applying multiple patches, I would eventually be told I > >> was out of space on /. There was about 60M free which is plenty for a > >> kernel an

fix format warning

2017-08-03 Thread Mark Kettenis
Currently clang ignores the "kprintf" format attribute. I've got a fix for that, but with that fix it complains about the code fixed in the diff below. Now our manual page says: FORMAT OPTIONS The kernel functions don't support as many formatting specifiers as their user space count

Re: Fix libexec/ld.so/dlclose regress

2017-08-03 Thread Ted Unangst
Joerg Sonnenberger wrote: > On Wed, Aug 02, 2017 at 09:03:30PM +0200, Mark Kettenis wrote: > > Couldn't convince clang not to inline duplicateFun() into bbTest2(). > > Splitting things out in a seperate file avoids the issue. Fixes the > > regression test. > > Have you tried the combiniation of n

[PATCH] Syspatch not clearing needed free space counter

2017-08-03 Thread trondd
Stuart Henderson wrote: > Ah, perhaps the change to disk behaviour wasn't reflected in calculations > then.. I got it figured out. In the checkfs function, the 'eval $(stat...)' command stores a list of disk devices and creates a variable named for each device to store the size of the files in

Re: vmd: reset queue_size if queue_select is invalid

2017-08-03 Thread Nick Owens
ping? On Thu, Jul 27, 2017 at 10:20 AM, Mike Larkin wrote: > On Wed, Jul 26, 2017 at 09:37:30PM -0700, Nick Owens wrote: >> hello tech@, >> >> here is a diff that will follow the virtio spec a little closer, and >> allows 9front's (http://9front.org) virtio-blk driver to correctly find >> the num

ifstated: consistent use of log.c

2017-08-03 Thread Rob Pierce
As a result ifstated.c no longer needs err.h. Index: ifstated.c === RCS file: /cvs/src/usr.sbin/ifstated/ifstated.c,v retrieving revision 1.56 diff -u -p -r1.56 ifstated.c --- ifstated.c 24 Jul 2017 12:33:59 - 1.56 +++ ifsta

switchd: no need to include err.h

2017-08-03 Thread Rob Pierce
switchd no longer requires err.h. Index: packet.c === RCS file: /cvs/src/usr.sbin/switchd/packet.c,v retrieving revision 1.4 diff -u -p -r1.4 packet.c --- packet.c26 Sep 2016 08:55:43 - 1.4 +++ packet.c4 Aug 2017 00:0