Re: acpiec(4): clear events based on vendor

2014-06-10 Thread Remi Locherer
On Wed, Jun 11, 2014 at 09:11:54AM +0300, Paul Irofti wrote: > On Tue, Jun 10, 2014 at 11:50:02PM +0200, Remi Locherer wrote: > > On Tue, Jun 10, 2014 at 06:25:33PM +0300, Paul Irofti wrote: > > > After discussions with Theo we decided to walk the table where needed > > > instead of using the soft

Re: acpiec(4): clear events based on vendor

2014-06-10 Thread Paul Irofti
On Tue, Jun 10, 2014 at 11:50:02PM +0200, Remi Locherer wrote: > On Tue, Jun 10, 2014 at 06:25:33PM +0300, Paul Irofti wrote: > > After discussions with Theo we decided to walk the table where needed > > instead of using the soft state variables. > > > > Also adding all the Samsung models to the q

Re: acpiec(4): clear events based on vendor

2014-06-10 Thread Remi Locherer
On Tue, Jun 10, 2014 at 06:25:33PM +0300, Paul Irofti wrote: > After discussions with Theo we decided to walk the table where needed > instead of using the soft state variables. > > Also adding all the Samsung models to the quirks table (as per the > Linux EC quirks table). > I tried this diff w

ftp(1) User-Agent

2014-06-10 Thread Lawrence Teo
This diff allows ftp(1) to change the User-Agent for HTTP(S) URL requests via the FTPUSERAGENT environment variable (personally I prefer HTTPUSERAGENT but FTPUSERAGENT is what's used by ftp(1) on other BSDs). This is useful when fetching URLs that are sensitive to the User-Agent, such as sites tha

Re: [PATCH] Use mkstemp instead of mktemp.

2014-06-10 Thread Theo de Raadt
And you tested to make sure that it works after your change? Fascinating. > mktemp was removed from POSIX 2008 for security reasons. > --- > usr.bin/nc/netcat.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/usr.bin/nc/netcat.c b/usr.bin/nc/netcat.c > index a034bba

Re: [PATCH] Use mkstemp instead of mktemp.

2014-06-10 Thread Brendan MacDonell
On Tue, Jun 10, 2014 at 7:32 PM, Dan Albert wrote: > mktemp was removed from POSIX 2008 for security reasons. > --- > usr.bin/nc/netcat.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/usr.bin/nc/netcat.c b/usr.bin/nc/netcat.c > index a034bba..d9e4ab4 100644 > --- a/

Re: acpiec(4): clear events based on vendor

2014-06-10 Thread Mark Kettenis
> Date: Tue, 10 Jun 2014 18:25:33 +0300 > From: Paul Irofti > > After discussions with Theo we decided to walk the table where needed > instead of using the soft state variables. > > Also adding all the Samsung models to the quirks table (as per the > Linux EC quirks table). This diff breaks my

Re: increase netcat's buffer...

2014-06-10 Thread Bernte
On 10/06/14 19:57, Bernte wrote: > On 10/06/14 17:45, Ted Unangst wrote: >> Now soliciting diffs to change readwrite to a loop with two buffers >> that poll()s in all four directions. :) >> > > Would libevent also be an option? > > bernd Ignore that, it is already using poll, so need to change t

Re: mfi(4) vs WT and WB

2014-06-10 Thread Mark Kettenis
> Date: Tue, 10 Jun 2014 21:55:04 +0200 > From: Otto Moerbeek > > On Tue, Jun 10, 2014 at 09:52:23PM +0200, Mark Kettenis wrote: > > > > Date: Tue, 10 Jun 2014 21:34:56 +0200 > > > From: Otto Moerbeek > > > > > > On Fri, Jun 06, 2014 at 08:54:24PM +0200, Otto Moerbeek wrote: > > > > > > > Thi

Re: mfi(4) vs WT and WB

2014-06-10 Thread Otto Moerbeek
On Tue, Jun 10, 2014 at 09:52:23PM +0200, Mark Kettenis wrote: > > Date: Tue, 10 Jun 2014 21:34:56 +0200 > > From: Otto Moerbeek > > > > On Fri, Jun 06, 2014 at 08:54:24PM +0200, Otto Moerbeek wrote: > > > > > This volumes feel pretty fast, so I suspect caching mode is OK. Still > > > it is con

Re: mfi(4) vs WT and WB

2014-06-10 Thread Mark Kettenis
> Date: Tue, 10 Jun 2014 21:34:56 +0200 > From: Otto Moerbeek > > On Fri, Jun 06, 2014 at 08:54:24PM +0200, Otto Moerbeek wrote: > > > This volumes feel pretty fast, so I suspect caching mode is OK. Still > > it is confusing to have a flag that doesn't reflect reality. > > > > I'm planning to u

Re: increase netcat's buffer...

2014-06-10 Thread Bernte
On 10/06/14 17:45, Ted Unangst wrote: > Now soliciting diffs to change readwrite to a loop with two buffers > that poll()s in all four directions. :) > Would libevent also be an option? bernd

Re: mfi(4) vs WT and WB

2014-06-10 Thread Otto Moerbeek
On Fri, Jun 06, 2014 at 08:54:24PM +0200, Otto Moerbeek wrote: > This volumes feel pretty fast, so I suspect caching mode is OK. Still > it is confusing to have a flag that doesn't reflect reality. > > I'm planning to upgrade the firmware next week. We'll see if that > changes anything. BTW, al b

Re: NOINET6 by default

2014-06-10 Thread Todd T. Fries
Penned by Henning Brauer on 20140608 10:14.46, we have: | since no consensus could be found yet for a new command line option to | ifconfig, heck, not even about wether it is needed, I propose this for | now. | | 1) make "ifconfig inet6 eui64" reset the NOINET6 flag | unconditionally, so a link-l

Re: increase netcat's buffer...

2014-06-10 Thread Ted Unangst
On Mon, Jun 09, 2014 at 21:54, Theo de Raadt wrote: >> > A better patch is probably the following which also increases the size >> > of the buffer to at least 64k: >> >> Agreed. > > One thing to be aware of. That function is syncronous. It will read > as much as it can get, then it will do an "a

Re: LibreSSL: is there any reason to keep opaque_prf_input?

2014-06-10 Thread Brendan MacDonell
Miod Vallat writes: > You're right. What about the following diff? (major bump for libssl) Looks OK to me. There's also a few tendrils in regress: Index: ssl/ssltest.c === RCS file: /home/cvsync/openbsd/src/regress/lib/libssl/ssl/

Re: acpiec(4): clear events based on vendor

2014-06-10 Thread Paul Irofti
After discussions with Theo we decided to walk the table where needed instead of using the soft state variables. Also adding all the Samsung models to the quirks table (as per the Linux EC quirks table). Index: acpiec.c === RCS file

exclude-list in mtree

2014-06-10 Thread Manuel Giraud
Hi, Here's a patch to make mtree support exclude-list. My ultimate goal is to monitor some directory activity as describe in security(8) (part on /etc/mtree/something.secure) excluding some files (e.g. logs). The code is mostly copied from FreeBSD. Index: Makefile

acpiec(4): clear events based on vendor

2014-06-10 Thread Paul Irofti
Hi, This is adding vendor-based support to my initial acpiec(4) clear events work[1]. It seems some machines need this only during resume, while other need it at attach (boot) as well. And then there's the group of machines that completely rely on having events in the queue on both boot and resum

Re: Create a default local route for every IPv4 address

2014-06-10 Thread Martin Pieuchot
On 28/05/14(Wed) 16:15, Martin Pieuchot wrote: > On 26/05/14(Mon) 15:17, Martin Pieuchot wrote: > > On 26/05/14(Mon) 08:03, Kenneth Westerback wrote: > > > [...] > > > > > > dhclient used to create such routes but that was removed as useless so > > > I'm not sure why we want/need to add them back.

Duplicate carp entries into routing table

2014-06-10 Thread Loïc Blot
Hi @tech, this week-end i got a strange bug into CARP. I'm using CARP as a MASTER/BACKUP configuration on two routers. Last week i upgraded from 5.2 to 5.5 (amd64), and since this event, i now have duplicated entries into my routing table (netstat -rnfinet): 25.14.43.252/30 link#53UC

Re: mirrorlist file proposal

2014-06-10 Thread Brett Mahar
On Mon, 9 Jun 2014 14:26:15 +0200 "misc nick" wrote: | OpenBSD has one of the simplest and most compact installers out there. | | However, at the end of the installation you need to have another internet | connected OS in order to copy the address of the mirror you wish to use | for package man