Re: Odd Public WiFi breaks dhclient(8) but works for iPhone (Fix!)

2018-06-12 Thread Kenneth R Westerback
On Sun, Jun 10, 2018 at 02:15:09PM -0400, Kenneth R Westerback wrote: > On Sat, Jun 09, 2018 at 02:10:09PM +0200, Claudio Jeker wrote: > > On Sat, Jun 09, 2018 at 01:31:20PM +0200, Martin Pieuchot wrote: > > > On 08/06/18(Fri) 18:06, Kenneth R Westerback wrote: > > >

Odd Public WiFi breaks dhclient(8) but works for iPhone (Fix!)

2018-06-10 Thread Kenneth R Westerback
On Sat, Jun 09, 2018 at 02:10:09PM +0200, Claudio Jeker wrote: > On Sat, Jun 09, 2018 at 01:31:20PM +0200, Martin Pieuchot wrote: > > On 08/06/18(Fri) 18:06, Kenneth R Westerback wrote: > > > Testing at the alternate DHCP lab (the one that serves beer) I find > > > that

Re: dhcp-options(5) diff

2018-02-28 Thread Kenneth R Westerback
On Wed, Feb 28, 2018 at 05:27:41PM +0100, Matthieu Herrb wrote: > On Wed, Feb 28, 2018 at 05:24:20PM +0100, Matthieu Herrb wrote: > > Hi, > > > > I've started using the classless-static-route option in dhcpd(8). This > > was not as painless as possible because I missed some important > > informati

Re: dhcpd: don't reject DHCPINFORM from behind relay

2017-07-05 Thread Kenneth R Westerback
On Wed, Jul 05, 2017 at 04:37:39PM +0200, Reyk Floeter wrote: > Hi, > > landry@ sees many log messages 'DHCPINFORM from xx but ciaddr yy is > not consistent with actual address' in a setup where dhcpd runs behind > dhcrelay. > > The code in dhcpd's dhcpinform() seems wrong - it assumes that ciadd

softraid and 4096-byte sectors 'fixed'

2015-07-22 Thread Kenneth R Westerback
The diff below is a first cut at making softraid usable on today's larger and larger disks which use 4096-byte sectors. It allows building softraid volumes with such devices, and even building volumes that mix 'classic' 512-byte sector devices with 'avante garde' 4k-sector devices. Unlikely to be

Microsoft Now OpenBSD Foundation Gold Contributor

2015-07-08 Thread Kenneth R Westerback
The OpenBSD Foundation is happy to announce that Microsoft has made a significant financial donation to the Foundation. This donation is in recognition of the role of the Foundation in supporting the OpenSSH project. This donation makes Microsoft the first Gold level contributor in the OpenBSD Foun

OpenBSD Foundation 2014/2015 News & Fundraising

2015-02-25 Thread Kenneth R Westerback
2014 was the most successful year to date for the OpenBSD Foundation. Both in the amount of money we raised and in the support we provided for the OpenBSD and related projects. We are extremely grateful for the support shown by our contributers large and small. A detailed summary of the Foundation

growfs fix

2014-04-29 Thread Kenneth R Westerback
This seems to fix growfs on 4k-sector drives by doing the test write to the last sector rather than the last 512-byte block, which can't be accessed directly on 4k-sector drives. Any other growfs users out there want to test on 'normal' drives? Ken Index: growfs.c ==

Re: 5.4 amd64 - Poor disk performance with Smart Array 6404

2013-12-09 Thread Kenneth R Westerback
On Mon, Dec 09, 2013 at 07:24:19PM -0500, Adam Jensen wrote: > I recently (last night) installed OpenBSD-5.4-amd64 on an > HP-Proliant ML370-G4 that has a Smart Array 6404 controller card in > a 64-bit, 133-MHz PCI-X slot. It has two Ultra320 SCSI channels and > 192MB of RAM cache. One SCSI channel

Re: dhclient support for /32 assignments

2013-12-05 Thread Kenneth R Westerback
On Wed, Dec 04, 2013 at 12:47:19PM -0800, Matthew Dempsky wrote: > On Wed, Dec 04, 2013 at 02:10:21PM -0500, Kenneth R Westerback wrote: > > No, that was my point. i.e. don't avoid adding the route when given > > a /32 address just because class static routes are also present

Re: dhclient support for /32 assignments

2013-12-04 Thread Kenneth R Westerback
On Wed, Dec 04, 2013 at 10:57:41AM -0800, Matthew Dempsky wrote: > On Tue, Dec 03, 2013 at 11:48:05PM -0500, Kenneth Westerback wrote: > > Rfc 3442 is what I referred to. > > I don't think RFC 3442 discusses what to do with /32 IP address > assignments though? No, that was my point. i.e. don't av

Re: dhclient support for /32 assignments

2013-12-03 Thread Kenneth R Westerback
On Tue, Dec 03, 2013 at 04:15:10PM -0800, Matthew Dempsky wrote: > The patch below extends dhclient to mimic this logic from ISC DHCP's > linux script: > > if [ "x$new_subnet_mask" = "x255.255.255.255" ] ; then > route add -host $router dev $interface > fi > route

Re: rename local ticks

2013-11-29 Thread Kenneth R Westerback
On Fri, Nov 29, 2013 at 04:50:17PM -0500, Ted Unangst wrote: > bad form, i think, to have a local variable shadow a global. I like it. ok krw@ Ken > > Index: kern_clock.c > === > RCS file: /cvs/src/sys/kern/kern_clock.c,v > re

Re: FDDI/ATM leftovers

2013-11-18 Thread Kenneth R Westerback
On Mon, Nov 18, 2013 at 11:28:56AM +, Alexey E. Suslikov wrote: > Martin Pieuchot nolizard.org> writes: > > > - case IFT_FDDI: > > - case IFT_ATM: > > case IFT_IEEE1394: > > any plans for FireWire? :) > Nope. :-) Ken

Re: Add fcu(4/macppc) to RAMDISK

2013-11-09 Thread Kenneth R Westerback
On Sat, Nov 09, 2013 at 08:36:23PM +0100, Martin Pieuchot wrote: > Without this driver, it's impossible to upgrade my PowerMac7,3 without > hearing a fan symphony. > > ok? As long as all the media still fit this is ok krw@. I don't think there are many in macppc. Ken > > Index: conf/RAM

Re: Fixing an LLVM warning in the i2o code

2013-11-04 Thread Kenneth R Westerback
On Tue, Nov 05, 2013 at 02:24:22AM +1000, David Gwynne wrote: > > On 5 Nov 2013, at 12:40 am, Kenneth R Westerback > wrote: > > > On Sun, Nov 03, 2013 at 10:51:43PM -0500, Brad Smith wrote: > >> LLVM errors out on the i2o code with the following warning.. > >

Re: Fixing an LLVM warning in the i2o code

2013-11-04 Thread Kenneth R Westerback
On Sun, Nov 03, 2013 at 10:51:43PM -0500, Brad Smith wrote: > LLVM errors out on the i2o code with the following warning.. > > ../../../../dev/i2o/iop.c:2399:42: error: comparison of unsigned expression < > 0 is always false [-Werror,-Wtautological-compare] > pt->pt_nbufs < 0 || pt->p

Re: [PATCH] ELF: ensure PT_INTERP strings are NULL-terminated

2013-10-05 Thread Kenneth R Westerback
On Sat, Oct 05, 2013 at 03:22:36PM -0600, Todd C. Miller wrote: > On Wed, 28 Aug 2013 22:34:26 -0400, Kenneth R Westerback wrote: > > > > @@ -552,11 +552,16 @@ ELFNAME2(exec,makecmds)(struct proc *p, > > > > > > for (i = 0, pp = ph; i < eh->e_phn

Re: re(4) diff that needs testing

2013-10-02 Thread Kenneth R Westerback
On Tue, Oct 01, 2013 at 09:32:30PM +0200, Mark Kettenis wrote: > Some re(4) variants now use msi. Unfortunately the interrupt handler > isn't careful enough, and we might miss an interrupt. The diff below > seems to fix that by disabling the interrupts while processing an > interrupt. This is wh

Re: re(4) diff that needs testing

2013-10-02 Thread Kenneth R Westerback
On Tue, Oct 01, 2013 at 09:32:30PM +0200, Mark Kettenis wrote: > Some re(4) variants now use msi. Unfortunately the interrupt handler > isn't careful enough, and we might miss an interrupt. The diff below > seems to fix that by disabling the interrupts while processing an > interrupt. This is wh

Re: enc interface errno

2013-09-27 Thread Kenneth R Westerback
On Fri, Sep 27, 2013 at 06:56:04PM +0200, Alexander Bluhm wrote: > On Fri, Sep 27, 2013 at 12:00:40PM -0400, Kenneth R Westerback wrote: > > I'm not sure what the 'rule' is regarding ENOMEM and ENOBUFS, but > > ENOMEN seems more appropriate to me. > > ma

Re: enc interface errno

2013-09-27 Thread Kenneth R Westerback
On Fri, Sep 27, 2013 at 03:24:25PM +0200, Alexander Bluhm wrote: > Hi, > > The error return codes for the enc interface seem quite inconsistent. > Always return the appropriate errno. > > ok? > > bluhm > > Index: net/if_enc.c > ===

Re: Iso image integrity verification

2013-09-13 Thread Kenneth R Westerback
On Fri, Sep 13, 2013 at 11:13:36AM +0300, Valentin Zagura wrote: > Security itself is not the primary issue here. The issue is to easily prove > an assessor "without reasonable doubt" that you are running the right thing. > They will not worry about governments trying to break in with MITM signed >

Re: Iso image integrity verification

2013-09-12 Thread Kenneth R Westerback
On Thu, Sep 12, 2013 at 07:52:22PM +0300, Valentin Zagura wrote: > > There is no entity > > that owns or can be held responsible for the code, or is capable > > of providing a solid evidentuary path from commit to your hands. > > I thought if we buy the CDs we WILL get "a solid evidentuary path fr

Re: Iso image integrity verification

2013-09-12 Thread Kenneth R Westerback
t easely show his security > >assessor that it has the right images using some "industry standard" ways, > >or someone living in a country that has an oppressive government and would > >download the image through tor could have some problems if the exit node is > >malic

Re: Iso image integrity verification

2013-09-11 Thread Kenneth R Westerback
On Wed, Sep 11, 2013 at 08:53:50PM +0300, Valentin Zagura wrote: > I don't think I'm more paranoid than the average considering that Debian > has a way to do this (http://www.debian.org/CD/verify), fedora has a way to > do this (https://fedoraproject.org/verify), even Freebsd has a way to do > this

Re: Introduce rt_msg() (was nd6_rtmsg)

2013-09-02 Thread Kenneth R Westerback
On Mon, Sep 02, 2013 at 12:43:51PM +0200, Martin Pieuchot wrote: > Diff below is just a small refactoring of two similar code chunks to > inform user processes that something changed regarding a route. > > I'd like to get this in because it removes one use of rt_addrinfo in > netinet6. > > There'

Re: useradd with empty -k doesn't chown/chmod new home directory

2013-08-31 Thread Kenneth R Westerback
On Sat, Aug 31, 2013 at 06:23:25AM -0600, Todd C. Miller wrote: > Assuming we want to make this a non-fatal error the following should > do. > > - todd > > Index: usr.sbin/user/user.c > === > RCS file: /home/cvs/openbsd/src/usr.sbin

Re: [PATCH] ELF: ensure PT_INTERP strings are NULL-terminated

2013-08-28 Thread Kenneth R Westerback
On Wed, Aug 28, 2013 at 09:43:24PM +0200, Maxime Villard wrote: > On 08/28/13 20:57, Matthew Dempsky wrote: > > On Wed, Aug 28, 2013 at 5:54 AM, Maxime Villard wrote: > >> + /* Ensure interp is a valid, NUL-terminated string > >> */ > >> + for (n = 0; n

Re: [PATCH] ELF: ensure PT_INTERP strings are NULL-terminated

2013-08-28 Thread Kenneth R Westerback
On Wed, Aug 28, 2013 at 08:44:26PM +0200, Maxime Villard wrote: > On 08/28/13 16:30, Kenneth R Westerback wrote: > > On Wed, Aug 28, 2013 at 02:54:11PM +0200, Maxime Villard wrote: > >> Updated diff, with small tweaks from Andres Perera, > >> * int -> size_t, sign

Re: [PATCH] ELF: ensure PT_INTERP strings are NULL-terminated

2013-08-28 Thread Kenneth R Westerback
On Wed, Aug 28, 2013 at 02:54:11PM +0200, Maxime Villard wrote: > Updated diff, with small tweaks from Andres Perera, > * int -> size_t, signedness issue, even if it can't be >INT_MAX > * NULL -> NUL > > > Index: exec_elf.c > === >

Re: Split rtinit()

2013-08-27 Thread Kenneth R Westerback
On Tue, Aug 27, 2013 at 03:38:49PM +0200, Martin Pieuchot wrote: > So I started to play with the routine table and I'm slowly trying to > unify the various code paths to add and delete route entries. The > diff below is a first step, it splits rtinit() into rt_add() and > rt_delete() there should

Re: defer routing table updates on link state changes

2013-08-27 Thread Kenneth R Westerback
On Tue, Aug 27, 2013 at 01:54:34PM +0200, Mike Belopuhov wrote: > On 27 August 2013 13:39, Martin Pieuchot wrote: > > I think that's the right approach but the current code generating > > interfaces indexes is too clever from my point of view, it tries > > to reuse the last index if possible. Thi

Re: Remove unused argument from *rtrequest()

2013-08-27 Thread Kenneth R Westerback
On Tue, Aug 27, 2013 at 03:58:51PM +0200, Martin Pieuchot wrote: > In order to define a proper API for our routine table, I'd like to turn > the "struct rt_addrinfo" into a private type (ie: only used in route.c > and rtsock.c). > > This type is used by a lost of code in our network stack to add o

Re: ldconfig/prebind.c - remove dead assignments

2013-07-14 Thread Kenneth R Westerback
On Sun, Jul 14, 2013 at 08:22:45PM +0200, J??r??mie Courr??ges-Anglas wrote: > Kenneth R Westerback writes: > > > On Sun, Jul 14, 2013 at 05:56:46PM +0200, J??r??mie Courr??ges-Anglas wrote: > >> Kenneth R Westerback writes: > >> > >> > On Sun, Jul 14,

Re: ldconfig/prebind.c - remove dead assignments

2013-07-14 Thread Kenneth R Westerback
On Sun, Jul 14, 2013 at 05:56:46PM +0200, J??r??mie Courr??ges-Anglas wrote: > Kenneth R Westerback writes: > > > On Sun, Jul 14, 2013 at 03:13:32PM +0200, J??r??mie Courr??ges-Anglas wrote: > >> Kenneth R Westerback writes: > >> > >> > On Sun, Jul 14,

Re: ldconfig/prebind.c - remove dead assignments

2013-07-14 Thread Kenneth R Westerback
On Sun, Jul 14, 2013 at 03:13:32PM +0200, J??r??mie Courr??ges-Anglas wrote: > Kenneth R Westerback writes: > > > On Sun, Jul 14, 2013 at 09:23:53AM +0200, J??r??mie Courr??ges-Anglas wrote: > >> David Hill writes: > >> > >> > remove unu

Re: ldd.c - plug memleak

2013-07-14 Thread Kenneth R Westerback
On Sun, Jul 14, 2013 at 09:23:05AM +0200, J??r??mie Courr??ges-Anglas wrote: > David Hill writes: > > > Hello - > > Hi, > > > doit() was not free()'ing memory or close()'ing the file descriptor if > > realpath() failed or dlopen() returned NULL. > > > > This diff just moves close() and free() u

Re: ldconfig/prebind.c - remove dead assignments

2013-07-14 Thread Kenneth R Westerback
On Sun, Jul 14, 2013 at 09:23:53AM +0200, J??r??mie Courr??ges-Anglas wrote: > David Hill writes: > > > remove unused variables. > > Makes sense. ok? > > > Index: ldconfig/prebind.c > > === > > RCS file: /cvs/src/libexec/ld.so/ldc

Re: exec_elf.c: mistake ?

2013-07-06 Thread Kenneth R Westerback
On Sat, Jul 06, 2013 at 05:21:31PM +0200, Maxime Villard wrote: > Hi, > - - - - sys/kern/exec_elf.c l.236 ~> 251&252 > Are my code scanner and me wrong, or 'bdiff' may not be > initialized ? > Codewise it does look possible that bdiff will be used uninitialized. Whether it can happen in reality d

Re: [PATCH?] Variable assignments...

2013-06-24 Thread Kenneth R Westerback
On Mon, Jun 24, 2013 at 06:15:44PM +0200, Maxime Villard wrote: > Hi, > there are lots of useless assignment of variables in the code. I know this > kind of things does not really matter, but when I run my code scanner on > some parts of the source tree it gives me lots of them. > > For example, f

Re: Still More Secrets of Buffer Cache Enlargement.

2013-06-10 Thread Kenneth R Westerback
On Sun, Jun 09, 2013 at 12:37:26PM -0600, Bob Beck wrote: > Greetings all, > > Here's an up to date version of the buffer flipper that installs > on post hackathon -current. > > This diff (~beck/viagra.diff15) contains one important change from > the previous version - In the old cache, as buff

RFC 3442 (classless static routes) in dhclient

2013-06-03 Thread Kenneth R Westerback
Anybody encountering dhcp environments that try to server out classless static routes, i.e. dhcp option 121? Support for static routes (option 33) thown in for free. Apparently Microsoft Network Access Protection may be using them. If so, tests of the diff below would be highly appreciated.

Re: Somewhat important ACPI diff

2013-05-20 Thread Kenneth R Westerback
On Mon, May 20, 2013 at 06:57:56PM +0200, Mark Kettenis wrote: > As diagnosed by some other people (armani@, jcs@?) a while ago, our > code to deal with IndexField() operators in our AML interpreter is > quite broken. It works for fields that are less than a byte in size, > but anything else is pr

Improve st(4) to make Bacula happier, 'modern' tapes faster

2013-05-12 Thread Kenneth R Westerback
The diff below brings a bunch of improvements, mostly from Net/FreeBSD, to the scsi tape driver st(4). In particular, running btape now reports (for me) no errors no matter which combination of Hardware End of Medium = Fast Forward Space File = settings are used. I'm told this should significant

Re: rm(1) static addition

2013-04-27 Thread Kenneth R Westerback
On Sat, Apr 27, 2013 at 08:10:41AM +0200, Otto Moerbeek wrote: > On Sat, Apr 27, 2013 at 01:08:06AM -0400, Eitan Adler wrote: > > > Hey all, > > > > Time for attempt #2! > > > > Adding static to internal function allows the compiler to better > > detect dead code (functions, variables, etc) and

Re: rm(1) static addition

2013-04-27 Thread Kenneth R Westerback
On Sat, Apr 27, 2013 at 09:12:21AM -0400, Eitan Adler wrote: > On 27 April 2013 09:06, Kenneth R Westerback wrote: > > On Sat, Apr 27, 2013 at 08:10:41AM +0200, Otto Moerbeek wrote: > >> On Sat, Apr 27, 2013 at 01:08:06AM -0400, Eitan Adler wrote: > >> > >&g

Re: tee rewrite

2013-04-21 Thread Kenneth R Westerback
On Sun, Apr 21, 2013 at 01:33:55PM -0400, Ted Unangst wrote: > ok, it's not a rewrite, but I changed a lot of the lines. > > Use better types, check errors against -1, delete some casts, stack > buffer eliminates one malloc, braces for long blocks. As long as you're in there, why not eliminate LI

Re: Another manpage grammar tweak (ath.4)

2013-04-12 Thread Kenneth R Westerback
On Fri, Apr 12, 2013 at 07:40:05AM +0100, Jason McIntyre wrote: > On Fri, Apr 12, 2013 at 08:30:16AM +0200, Alexander Hall wrote: > > >> .It AR5212 > > >> These devices support 802.11a, 802.11b, and 802.11g operation with > > >> transmit speeds as above for 802.11a, 802.11b, and 802.11g operatio

Re: goodbye to some isa devices

2013-03-27 Thread Kenneth R Westerback
On Wed, Mar 27, 2013 at 08:14:20PM +, Creamy wrote: > On Wed, Mar 27, 2013 at 08:05:47PM +, Miod Vallat wrote: > > > In fact, to everybody else who is reading this, doesn't it just point out > > > that 486 support is, effectively, already broken, (as I suspected), > > > because the devices

Re: goodbye to some isa devices

2013-03-26 Thread Kenneth R Westerback
On Tue, Mar 26, 2013 at 09:09:14AM -0400, Ted Unangst wrote: > On Tue, Mar 26, 2013 at 11:13, Mark Kettenis wrote: > >> Date: Tue, 26 Mar 2013 05:20:27 -0400 > >> From: Ted Unangst > >> > >> These isa devs are already disabled and not particularly popular among > >> our users. affected: tcic, sea

Re: Add Soekris comBIOS detection to bios(4) on i386/amd64

2013-03-12 Thread Kenneth R Westerback
On Tue, Mar 12, 2013 at 05:13:01AM -0400, Matt Dainty wrote: > * Matt Dainty [2013-02-20 19:30:43]: > > Attached are two patches for bios(4) on i386 & amd64 that add support > > for detecting the comBIOS on Soekris hardware, which then fills in the > > hw.vendor & hw.product sysctl variables as th

dhcpd ACK's too much

2013-03-10 Thread Kenneth R Westerback
As reported by Andy via bugs@, our dhcpd is tad too accommodating with its ACK'ing. According to RFC 2131 the server should only ACK a REQUEST containing a server-identifier option if the server-identifier identifies that server. Andy confirms this works for him. Any other testers with challenging

Re: Kill IFAFREE()

2013-03-06 Thread Kenneth R Westerback
On Wed, Mar 06, 2013 at 03:58:22PM +0100, Mark Kettenis wrote: > > Date: Wed, 6 Mar 2013 15:25:34 +0100 > > From: Martin Pieuchot > > > > On 05/03/13(Tue) 21:57, Claudio Jeker wrote: > > > On Tue, Mar 05, 2013 at 12:03:49PM +0100, Mike Belopuhov wrote: > > > > On 5 March 2013 11:55, Mark Kettenis

Re: out of memory errors seen on several AnonCVS servers

2013-03-04 Thread Kenneth R Westerback
On Mon, Mar 04, 2013 at 11:13:22AM -0500, Ted Unangst wrote: > On Mon, Mar 04, 2013 at 15:55, Stuart Henderson wrote: > > > The client arch and software doesn't make a difference, the problem > > is on the server side. Problems seen when using opencvs server-side > > include giving out the wrong f

Re: install(1) confusing error message

2013-02-14 Thread Kenneth R Westerback
On Thu, Feb 14, 2013 at 08:38:02PM +, Miod Vallat wrote: > This is what happens when install(1) is used to install files on a > read-only filesystem: > > # mount -u -o ro /usr > # cd /usr/src > # make build > cd /usr/src/share/mk && exec make install > install -c -o root -g bin -m 444 bsd.REA

dhclient massive update -- test now or forever hold your peace!

2013-01-17 Thread Kenneth R Westerback
As advertised a few months ago, dhclient(8) have been substantially reworked. The functional changes should all be in -current and snapshots dated later than today. Workarounds for most reported uses of dhclient-script have been found. Now is the time to test dhclient hard to discover if/how your

Re: diff: dhcp-options(5) vs. dhcpd/tables.c

2013-01-03 Thread Kenneth R Westerback
On Thu, Jan 03, 2013 at 04:00:38PM +0100, MERIGHI Marcus wrote: > j...@kerhand.co.uk (Jason McIntyre), 2013.01.02 (Wed) 18:39 (CET): > > On Sun, Dec 16, 2012 at 07:24:53PM +0100, MERIGHI Marcus wrote: > > > playing with option-252 I found it already has a name. Found that as > > > well: http://marc

Re: change if_iqdrops to if_ierrors

2012-11-29 Thread Kenneth R Westerback
On Thu, Nov 29, 2012 at 04:41:09PM +0100, Mike Belopuhov wrote: > hi, > > drivers ex age alc ale jme se vic vte xe upl and octeon/cmac > make use of the if_iqdrops counter that is not shown by any of our > tools (like netstat). looks like most of its usage comes from > freebsd where they show it

Re: hostname.if(5) clarification

2012-11-26 Thread Kenneth R Westerback
On Mon, Nov 26, 2012 at 05:40:06PM +, Jason McIntyre wrote: > On Mon, Nov 26, 2012 at 07:19:23PM +0200, Paul Irofti wrote: > > On Mon, Nov 26, 2012 at 04:26:12PM +, Jason McIntyre wrote: > > > On Mon, Nov 26, 2012 at 04:30:47PM +0200, Paul Irofti wrote: > > > > Be more specific about the or

Re: hostname.if(5) clarification

2012-11-26 Thread Kenneth R Westerback
On Mon, Nov 26, 2012 at 04:26:12PM +, Jason McIntyre wrote: > On Mon, Nov 26, 2012 at 04:30:47PM +0200, Paul Irofti wrote: > > Be more specific about the order of interpretation. Okay? > > > > diff --git share/man/man5/hostname.if.5 share/man/man5/hostname.if.5 > > index b07459f..aa8446f 10064

Re: Major dhclient(8) changes - no more dhclient-script

2012-11-14 Thread Kenneth R Westerback
On Tue, Nov 13, 2012 at 03:14:40PM -0500, sven falempin wrote: > 2012/11/9 Kenneth R Westerback > > > Those of you following -current or running very recent snaps may have > > noticed a lot of changes to dhclient in the last couple of weeks. > > > > Aside from some

Major dhclient(8) changes - no more dhclient-script

2012-11-09 Thread Kenneth R Westerback
Those of you following -current or running very recent snaps may have noticed a lot of changes to dhclient in the last couple of weeks. Aside from some major clean up, these changes revolve around the elimination of the dhclient-script as both detrimental to sanity and our ability to move forward

Re: athn(4) resets entire chip when switching channels

2012-10-20 Thread Kenneth R Westerback
On Sat, Oct 20, 2012 at 09:16:38PM +0200, Stefan Sperling wrote: > This looks like an obvious and accidental coding error. But I have no > working athn(4) hardware to confirm that fixing it doesn't do any harm. > Can athn(4) users please test this? Thanks. > > Index: athn.c > =

Re: update athn(4) ar9485 initvals (please test on any athn(4))

2012-10-15 Thread Kenneth R Westerback
On Sat, Oct 13, 2012 at 07:26:30PM +0200, Stefan Sperling wrote: > On Sun, Oct 07, 2012 at 06:24:39PM +0200, Stefan Sperling wrote: > > The init values athn(4) has for the ar9485 are for version 1.0 of > > this chip, which according to Atheros Linux developers was never sold: > > http://git.kernel.

Re: Unable to mount SAN IBM DS3400 through Qlogic HBA 24XX on openbsd 5.1

2012-10-11 Thread Kenneth R Westerback
On Thu, Oct 11, 2012 at 03:25:26PM +0530, mu...@nitrkl.ac.in wrote: > Still i am waiting for some hope. Nobody attach SAN With openbsd till now > in the world ?. As we pointed out earlier, the isp 2400 4Gbit series cards are not yet supported by OpenBSD. Ken > > > > Dear all, > > > > I am

Re: ral rt2661 tx interrupt race fix

2012-10-04 Thread Kenneth R Westerback
On Thu, Oct 04, 2012 at 07:21:50PM +0200, Stefan Sperling wrote: > On Sun, Sep 30, 2012 at 10:32:23PM +0100, Tom Murphy wrote: > > Stefan, > > > > Your patch works well on my system: > > > > ral0 at pci0 dev 14 function 0 "Ralink RT2661" rev 0x00: irq 10, address > > 00:14:85:d5:39:bb > >

Re: compile kernel with isp qlogic

2012-10-01 Thread Kenneth R Westerback
On Mon, Oct 01, 2012 at 06:32:43PM +0530, mohit sah wrote: > Can any one tell me the right way to compile the kernel with isp. > > -- > Mohit Sah > isp(4) is compiled into GENERIC on alpha, amd64, hppa, i386, macppc, sparc, and sparc64. What is the problem you are encountering? Ken

Re: gem(4): simplify gem_attach_pci() variant detection code a bit

2012-09-28 Thread Kenneth R Westerback
On Fri, Sep 28, 2012 at 09:31:34AM +0200, Christiano F. Haesbaert wrote: > On Fri, Sep 28, 2012 at 02:42:18AM -0400, Brad Smith wrote: > > On Wed, Sep 26, 2012 at 03:32:37PM -0400, Brad Smith wrote: > > > Simplify the gem(4) variant detection code a bit. > > > > > > OK? > > > > How about this.. >

Re: make -j and errors

2012-09-26 Thread Kenneth R Westerback
On Wed, Sep 26, 2012 at 06:21:34PM +0200, Marc Espie wrote: > I've been thinking some more about it. > > POSIX says very little about parallel makes. > > The more I think about it, the more I think gnu-make's approach on this is > stupid: if a job errors out in a fatal way, what do we gain if we

Re: hook-up acpi locking

2012-09-19 Thread Kenneth R Westerback
On Wed, Sep 19, 2012 at 12:22:49AM +0300, Paul Irofti wrote: > Any reason we have this disabled? > I ran with this diff in for quite some time w/o any problems. > Can you test this and let me know if anything bad happens? > I'd like to enable this codepath and I have diffs depending on it. > > Ind

Re: msdosfs_vnops.c u_char toname diff [Was: Re: panic: smashed stack in msdosfs_rename]

2012-09-04 Thread Kenneth R Westerback
On Tue, Sep 04, 2012 at 02:56:40PM +0200, MERIGHI Marcus wrote: > with the diff below my ``panic: smashed stack in msdosfs_rename'' > problem does not appear any more. > > Index: msdosfs_vnops.c > === > RCS file: /cvs/src/sys/msdosfs

dhclient - better timeouts, fewer packets

2012-08-25 Thread Kenneth R Westerback
Struggling with more inconsistant uses/assumptions around the global time stamp (cur_time) I finally concluded it was fatally flawed. Or at least more trouble than it is worth. So, 1) Use time(NULL) to get current time where required, 2) Add local variables cur_time where the time is used mulitpl

Re: unterminated make variables

2012-08-18 Thread Kenneth R Westerback
On Sat, Aug 18, 2012 at 12:29:51PM +0200, Marc Espie wrote: > Our make currently "misbehaves" and doesn't treat this as a problem. > > A=a > > a: > echo ${A > > > there are several possibilities. > 1/ do like gmake and treat this as an actual error. > 2/ keep the status quo > 3/ do someth

Re: UQ_BAD_HID

2012-08-09 Thread Kenneth R Westerback
On Thu, Aug 09, 2012 at 03:30:16PM +0100, Stuart Henderson wrote: > Thanks to mpi@, libusb now has some support for communicating > with devices even though they're not attached to ugen(4). > > What do people think about removing the UQ_BAD_HID entries in > usb_quirks.c which prevents these device

Re: dhclient ignore

2012-07-26 Thread Kenneth R Westerback
I like this on first read. In fact I thought this already existed. I'll actually look more closely at the code tomorrow. Ken On Thu, Jul 26, 2012 at 10:09:28PM -0400, Ted Unangst wrote: > I have a system with two network interfaces (em0 and em1), running dhcp > on both. Both dhcp servers pro

Re: Virtio drivers for OpenBSD

2012-07-11 Thread Kenneth R Westerback
On Wed, Jul 11, 2012 at 11:02:05AM -0400, Ted Unangst wrote: > On Wed, Jul 11, 2012 at 14:07, Stefan Fritsch wrote: > > Hi, > > > > I have been working on porting NetBSD's virtio drivers to OpenBSD. I am > > not finished yet, but in order to prevent duplicate work, I thought I'd > > publish the c

Re: tedu old comment about cpu affinity.

2012-07-09 Thread Kenneth R Westerback
On Mon, Jul 09, 2012 at 10:47:16AM +0200, Christiano F. Haesbaert wrote: > This no longer applies, it is probably a leftover from the days when we > had a global runqueue. Discussed with blambert. > > ok ? > > Index: sched_bsd.c > ==

Re: [patch] wpi(4): add promiscuous mode

2012-07-08 Thread Kenneth R Westerback
On Sun, Jul 08, 2012 at 07:17:21PM +0200, Stefan Sperling wrote: > On Sun, Jul 08, 2012 at 08:00:28PM +0300, Lazaros Koromilas wrote: > > On Sun, Jul 08, 2012 at 10:59:09AM +0200, Stefan Sperling wrote: > > > The linux driver ("iwlegacy") doesn't run this command in async mode. > > > Is there a rea

fix dhclient parsing of NVT ASCII options

2012-06-24 Thread Kenneth R Westerback
Apparently we should be removing trailing NULs from options whose data are NVT ASCII strings. Other than RFC nitpicking, Microsoft DHCP sometimes sticks those pesky NULs in, and this breaks 'appending' values via dhclient.conf, as the pretty print routine will stick '\000' into the generated strin

Re: Memory leak in snmpd(8)

2012-05-24 Thread Kenneth R Westerback
On Thu, May 24, 2012 at 01:54:36PM +0200, Gerhard Roth wrote: > Hi, > > with the OPENBSD-CARP-MIB a memory leak was introduced to snmpd(8): > > RCS file: mib.c,v > retrieving revision 1.52 > diff -u -p -r1.52 mib.c > --- mib.c 2012/03/20 03:01:26 1.52 > +++ mib.c 2012/05/24 12:53:

Re: Use a default device for eject(1)

2012-05-20 Thread Kenneth R Westerback
On Sun, May 20, 2012 at 10:36:16AM -0600, Theo de Raadt wrote: > > On 20/05/12(Sun) 11:26, Kenneth R Westerback wrote: > > > On Sun, May 20, 2012 at 04:46:40PM +0200, Martin Pieuchot wrote: > > > > Diff below makes eject(1) use cd0 as default device like cdio(1) does.

Re: Use a default device for eject(1)

2012-05-20 Thread Kenneth R Westerback
On Sun, May 20, 2012 at 04:46:40PM +0200, Martin Pieuchot wrote: > Diff below makes eject(1) use cd0 as default device like cdio(1) does. > > I'm aware this is an arbitrary choice but I see no drawback in having > a default device to eject and this behavior is coherent with cdio(1)'s. > > Ok? Th

Re: Use a default device for eject(1)

2012-05-20 Thread Kenneth R Westerback
On Sun, May 20, 2012 at 04:46:40PM +0200, Martin Pieuchot wrote: > Diff below makes eject(1) use cd0 as default device like cdio(1) does. > > I'm aware this is an arbitrary choice but I see no drawback in having > a default device to eject and this behavior is coherent with cdio(1)'s. > > Ok? Bu

Re: "Do you want to do any manual network configuration?"

2012-04-19 Thread Kenneth R Westerback
On Thu, Apr 19, 2012 at 08:01:19PM +0200, Henning Brauer wrote: > * Theo de Raadt [2012-04-19 18:44]: > > > I needed it in different situations. install over wifi with a wep/wpa > > > key, old crappy hw that need explicit media settings and maybe other > > > cases that I forgot. > > > For sure I c

Re: diff: improving msdosfs write speed for large files

2012-04-04 Thread Kenneth R Westerback
On Wed, Apr 04, 2012 at 03:51:38PM +0200, Mike Belopuhov wrote: > On Wed, Apr 04, 2012 at 14:42 +0400, Alexander Polakov wrote: > > This is a diff from NetBSD pr.34583: > > http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=34583 > > > > Quoting the author: > > > > "I noticed that when

Re: Sun Fire v215 panic at boot

2012-03-13 Thread Kenneth R Westerback
On Tue, Mar 13, 2012 at 08:15:33PM +0100, Mark Kettenis wrote: > > Date: Mon, 12 Mar 2012 22:39:31 +0100 (CET) > > From: Mark Kettenis > > > > > Date: Sat, 25 Feb 2012 09:55:57 +0100 > > > From: Paul de Weerd > > > > > > I recently got a v215 from a friend and have installed OpenBSD on it. > >

Re: installation to (W)hole disk - saner default

2012-03-07 Thread Kenneth R Westerback
On Wed, Mar 07, 2012 at 05:32:09PM +0100, David Vasek wrote: > Hello all. > > While I would always defend everybody's right to use OpenBSD to > shoot himself in his foot, I don't think it is neither practical nor > ethical to hint him to do so. > > So if the installer finds a valid MBR which cont

Tweak MBR/FAT spoofing

2012-02-23 Thread Kenneth R Westerback
1) There is no place on a FAT drive to put a disklabel. So when asked where to write a disklabel on a FAT device, return an error. I chose ENXIO, but can easily be argued around to something else. 2) When deciding if we have processed one or more MBR/EBR's check the number of MBR/EBR's we have tra

Re: readdir man page

2012-02-04 Thread Kenneth R Westerback
On Thu, Feb 02, 2012 at 10:29:00PM -0700, Philip Guenther wrote: > On Thu, 2 Feb 2012, Philip Guenther wrote: > > I also think readdir() should set errno if it detects an invalid > > seekdir(). EINVAL seems correct. > > Here's a diff for this bit. > > oks? > > > Philip Guenther > > > Index:

Re: transferred/transferring typos

2012-01-08 Thread Kenneth R Westerback
On Sat, Jan 07, 2012 at 02:40:24PM +, Jason McIntyre wrote: > On Sat, Jan 07, 2012 at 03:29:40PM +0100, Tobias Ulmer wrote: > > After typing 'transferring' wrong one time too many... > > > > I didn't touch gcc, binutils, bind, lynx, kerberos, openssl or perl on > > purpose. > > > > ok by me.

Re: ntfs: respect the MNT_FORCE flag upon unmount

2011-12-19 Thread Kenneth R Westerback
On Tue, Dec 20, 2011 at 01:33:37AM +0100, Mike Belopuhov wrote: > this is an improved diff that addresses the problem with forced > unmount of the ntfs filesystem in situations like the one described > here: http://marc.info/?l=openbsd-bugs&m=132257956328474&w=2 > > ntfs keeps a bunch of vnodes o

Re: rc.d/xdm, check for broken xkb

2011-11-02 Thread Kenneth R Westerback
On Wed, Nov 02, 2011 at 02:00:47PM +0100, Stefan Sperling wrote: > On Wed, Nov 02, 2011 at 08:31:19AM -0400, Kenneth R Westerback wrote: > > On Tue, Nov 01, 2011 at 04:39:29PM +, Stuart Henderson wrote: > > > If you hit the xkb file/directory problem (for example, if yo

Re: rc.d/xdm, check for broken xkb

2011-11-02 Thread Kenneth R Westerback
On Wed, Nov 02, 2011 at 08:42:15AM -0400, Brad wrote: > On 02/11/11 8:31 AM, Kenneth R Westerback wrote: > >On Tue, Nov 01, 2011 at 04:39:29PM +, Stuart Henderson wrote: > >>If you hit the xkb file/directory problem (for example, if you follow > >>the "

Re: rc.d/xdm, check for broken xkb

2011-11-02 Thread Kenneth R Westerback
On Tue, Nov 01, 2011 at 04:39:29PM +, Stuart Henderson wrote: > If you hit the xkb file/directory problem (for example, if you follow > the "upgrading without install kernel" instructions), you can't type at > the keyboard, even to switch to a text console. > > What does anyone think about di

Re: quotacheck(8) and duid

2011-08-30 Thread Kenneth R Westerback
On Tue, Aug 30, 2011 at 01:25:14AM +0200, Rogier Krieger wrote: > ...at present do not seem to go together nicely: > > # tail -n 1 /etc/fstab > 73123067c3dc34d4.a /data ffs rw,userquota,groupquota 1 1 > > # /sbin/quotacheck /data > quotacheck: 73123067c3dc34d4.a: No such file or directory > > >

Re: use strtonum to check Port statements in apache

2011-08-25 Thread Kenneth R Westerback
On Thu, Aug 25, 2011 at 08:25:00PM +1000, David Gwynne wrote: > i want to push my "set scheme in http" diff again, but it makes > sense to reuse server_port as part of that. > > this makes server_port more palatable to me. > > ok? Can't see that this changes anything, and it does look better, so

Re: new dhclient.conf option: host-route

2011-08-16 Thread Kenneth R Westerback
On Tue, Aug 16, 2011 at 06:53:01AM -0500, Todd T. Fries wrote: > I have done this in a different way, namely by 'filtering' the variables > that are passed to /sbin/dhclient-script by using the > 'script "/path/to/my/script"' option to run my own script, act on variables > I care about (dns and def

Re: mg dired diff to reduce annoyance

2011-07-30 Thread Kenneth R Westerback
On Sat, Jul 30, 2011 at 04:30:42PM -0400, Loganaden Velvindron wrote: > I'll wait for kjell@ to have some time > to review this diff. > > No big deal really :-D > You might wait a long time. Kjell has transitioned to the real world and now works for a living. :-) Ken

Re: s/firmwares/firmware/, it's already plural

2011-07-27 Thread Kenneth R Westerback
On Wed, Jul 27, 2011 at 10:49:01PM +0200, David Coppa wrote: > Didn't know about this... > > http://wiki.answers.com/Q/What_is_the_plural_of_firmware > > ok for me Me too. Ken > > On Wed, Jul 27, 2011 at 10:31 PM, Stuart Henderson > wrote: > > ok? > > > > Index: distrib/miniroot/install

  1   2   3   4   >