relayd redirects : forward [with synproxy] to web_pool check tcp

2014-05-28 Thread Gabriel Linder
It is sometimes desirable to enable synproxy when using relayd's redirects, this diff allow just that. In case it gets mangled : http://dargor.servebeer.com/~dargor/openbsd/relayd-forward-with-synproxy.diff ok ? Index: parse.y

Sync pthread_set_name_np.3 with pthread_np.h

2014-03-06 Thread Gabriel Linder
Index: pthread_set_name_np.3 === RCS file: /cvs/src/lib/libpthread/man/pthread_set_name_np.3,v retrieving revision 1.5 diff -u -p -r1.5 pthread_set_name_np.3 --- pthread_set_name_np.3 5 Jun 2013 03:44:50 - 1.5 +++

Re: alc0 panic and splassert: assertwaitok: want -1 have 1

2011-01-31 Thread Gabriel Linder
On 01/30/11 14:39, Mike Belopuhov wrote: hi, if you haven't fixed it yet, here's a diff. it also fixes a error/!error logic bug. could you please try it out? Thank you, I made a more complete diff fixing a few more problems http://marc.info/?l=openbsd-techm=129636716819943w=2 - I missed the

Re: Fix alc(4) watchdog timeouts and panics

2011-01-31 Thread Gabriel Linder
On 01/30/11 06:04, Gabriel Linder wrote: This diff fix some problems on my EeePC 1005PX : - splassert failure when booting without a network cable - panic when unplugging a network cable - network does not come back when plugging a network cable - watchdog timeouts Mike Belopuhov found another

Fix alc(4) watchdog timeouts and panics (new diff)

2011-01-31 Thread Gabriel Linder
After some comments made by Brad and Mike Belopuhov, here's a new diff. Tested on EeePC 1005PX. cf. http://marc.info/?l=openbsd-techm=129636716819943w=2 Index: if_alcreg.h === RCS file: /cvs/openbsd/src/sys/dev/pci/if_alcreg.h,v

Re: History for bc(1)

2011-02-15 Thread Gabriel Linder
On 02/14/11 17:43, Christiano F. Haesbaert wrote: Any news on this ? The diff still apply on -current. If there are changes needed I can work on it, but I have no news.

Re: alc(4) support for Atheros AR815x

2011-02-15 Thread Gabriel Linder
On 01/25/11 11:24, Kevin Lo wrote: Hi, The following diff adds support for Atheros AR8151/AR8152 chipsets; mostly from FreeBSD. It also fixes an issue i386/6311. Tested on Acer AOD255E. Tried yesterday on EeePC 1005PX, some comments inline. @@ -515,6 +694,20 @@ alc_attach(struct device

Re: History for bc(1)

2011-02-16 Thread Gabriel Linder
On 02/15/11 13:01, Otto Moerbeek wrote: sorry, in have a diff in my tree, but I see myself always ignoring it. I just almost never actually use the editing capabilities. It seems my 25yr finger memory is too strong. So I'm not a proper tester for this diff, other than it does not seem to cause

Re: alc(4) support for Atheros AR815x

2011-05-04 Thread Gabriel Linder
On 05/02/11 14:23, Edd Barrett wrote: On Mon, May 02, 2011 at 11:02:41AM +0100, Stuart Henderson wrote: On 2011/05/02 01:16, Edd Barrett wrote: On Sun, May 01, 2011 at 08:10:56PM +0100, Stuart Henderson wrote: On 2011/05/01 18:35, Edd Barrett wrote: I have acquired a netboot (packard bell

Fix two warnings in diffdir.c : edp1/edp2 may be used uninitialized

2011-11-18 Thread Gabriel Linder
Index: diffdir.c === RCS file: /cvs/src/usr.bin/diff/diffdir.c,v retrieving revision 1.40 diff -u -r1.40 diffdir.c --- diffdir.c14 Nov 2010 18:24:43 -1.40 +++ diffdir.c18 Nov 2011 10:57:54 - @@ -48,8 +48,8 @@

Re: relayd and rdomain/prio defaults

2012-03-06 Thread Gabriel Linder
On 03/05/12 21:10, Erik Lax wrote: On 3/2/12 5:09 PM, Gabriel Linder wrote: Since 5.0 rules injected by relayd includes on rdomain 0 and prio 0, I guess that's not intended ? I think you're right. And if so, the same problem seem to exist for the ftp-proxy (filter.c) as well. I guess

tar -J to extract xz archives

2012-05-29 Thread Gabriel Linder
I see more and more tar.xz archives, and thought it would be nice to have tar able to extract them directly as with gzip/bzip2. -J is what GNU and FreeBSD use, so I used it too. Based on what was done to add bzip2 support. In case my client mess up with tabulations, here is a real file :

Re: tar -J to extract xz archives

2012-05-30 Thread Gabriel Linder
On 05/30/12 07:53, Landry Breuil wrote: On Tue, May 29, 2012 at 09:19:49PM -0400, Ted Unangst wrote: On Tue, May 29, 2012 at 17:46, Gabriel Linder wrote: I see more and more tar.xz archives, and thought it would be nice to have tar able to extract them directly as with gzip/bzip2. -J is what

Re: Send hostname to remote host with syslogd

2013-02-01 Thread Gabriel Linder
: Gabriel Linder lin...@jeuxvideo.com To: tech@openbsd.org Sent: Wednesday, December 26, 2012 9:40:40 AM Subject: Send hostname to remote host with syslogd While playing with base syslogd and syslog-ng to have a unique loghost on my network, I noticed that OpenBSD syslogd does not send the hostname

Re: Send hostname to remote host with syslogd

2013-02-01 Thread Gabriel Linder
On 02/01/13 11:57, Stuart Henderson wrote: From: Gabriel Linder lin...@jeuxvideo.com To: tech@openbsd.org Sent: Wednesday, December 26, 2012 9:40:40 AM Subject: Send hostname to remote host with syslogd While playing with base syslogd and syslog-ng to have a unique loghost on my network, I

Re: Send hostname to remote host with syslogd

2013-02-06 Thread Gabriel Linder
On 02/01/13 15:30, Gabriel Linder wrote: On 02/01/13 11:57, Stuart Henderson wrote: I'm a bit undecided as to whether this is really useful (I suppose having it _in addition_ to the IP address might be useful where there's a NAT between log source and destination) but in any event if it's

Re: Send hostname to remote host with syslogd

2013-02-08 Thread Gabriel Linder
On 02/07/13 17:38, Bob Beck wrote: This looks correct to me. Does this diff have a chance to be committed then ? On Thu, Feb 7, 2013 at 5:08 AM, Markus Friedl mfri...@gmail.com wrote: fwiw, this is what i have in my tree for some time now: Index: syslogd.c

Typos in net/bpf.h

2013-03-22 Thread Gabriel Linder
While learning how to use BPF I fumbled on this, clarification is needed imho. ok ? Index: sys/net/bpf.h === RCS file: /cvs/src/sys/net/bpf.h,v retrieving revision 1.43 diff -u -r1.43 bpf.h --- sys/net/bpf.h26 Mar 2012 19:37:42

Re: Typos in net/bpf.h

2013-03-22 Thread Gabriel Linder
On 03/22/13 17:25, Philip Guenther wrote: On Fri, Mar 22, 2013 at 7:53 AM, Gabriel Linder lin...@jeuxvideo.com wrote: - * bpf understands a program iff kernel_major == filter_major + * bpf understands a program if kernel_major == filter_major Not a typo: iff is a shorthand for if and only

Re: Typos in net/bpf.h

2013-03-22 Thread Gabriel Linder
On 03/22/13 17:38, Theo de Raadt wrote: On 03/22/13 17:25, Philip Guenther wrote: On Fri, Mar 22, 2013 at 7:53 AM, Gabriel Linder lin...@jeuxvideo.com wrote: - * bpf understands a program iff kernel_major == filter_major + * bpf understands a program if kernel_major == filter_major

History for bc(1)

2010-08-13 Thread Gabriel Linder
This diff implements history for bc(1) using editline(3). History is not persistent, I can add this feature if needed. el_init with stderr should not be a problem for an interactive program, let me know otherwise. This is my first diff, so hints/advices/crucifixion are welcome :) Index:

Re: History for bc(1)

2010-08-13 Thread Gabriel Linder
On Fri, 13 Aug 2010 14:30:50 +0200 Otto Moerbeek o...@drijf.net wrote: Take a look at freebsd. They have added editline support to bc. If (big if) we're going to add command line editing and history, I'd rather take that. I will take a look at their implementation then, thank you.

Re: alc0 panic and splassert: assertwaitok: want -1 have 1

2011-01-28 Thread Gabriel Linder
On 01/27/11 09:13, Gabriel Linder wrote: When booting 4.9-beta/amd64 without a network cable plugged, I get a lot of splassert failures. After changing kern.splassert to 3 I was able to get the following trace (get with dmesg after a reboot) : OpenBSD 4.9-beta (GENERIC.MP) #786: Tue Jan 25

Fix alc(4) watchdog timeouts and panics

2011-01-29 Thread Gabriel Linder
This diff fix some problems on my EeePC 1005PX : - splassert failure when booting without a network cable - panic when unplugging a network cable - network does not come back when plugging a network cable - watchdog timeouts Most of the fixes are coming from FreeBSD. if_alcreg.h had only typos.

ix(4) and Unsupported SFP+ Module

2014-12-05 Thread Gabriel Linder
Hi, On a 5.6-release I have an ix card which refuses to work with unsupported SFP+ modules, saying this : ix0 at pci1 dev 0 function 0 Intel 82599 rev 0x01Unsupported SFP+ Module. However, this seems to be an artificial limitation of the ix driver : the following diff (against sys.tar.gz as

Re: ix(4) and Unsupported SFP+ Module

2014-12-05 Thread Gabriel Linder
On 12/05/14 13:08, Mike Belopuhov wrote: On Fri, Dec 05, 2014 at 11:24 +0100, Gabriel Linder wrote: Hi, On a 5.6-release I have an ix card which refuses to work with unsupported SFP+ modules, saying this : ix0 at pci1 dev 0 function 0 Intel 82599 rev 0x01Unsupported SFP+ Module. However