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 > >

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

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

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

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

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 is

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. I think there might

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 avoid

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 add

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: 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 mpieuchot at 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/RAMDISK

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 ||

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 kwesterb...@rogers.com 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.. ../../../../dev/i2o

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_phnum; i++, pp++) { if (pp-p_type == PT_INTERP

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 what

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. man 2 errno 12 ENOMEM Cannot allocate memory

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 ssl

Re: Iso image integrity verification

2013-09-12 Thread Kenneth R Westerback
download the image through tor could have some problems if the exit node is malicious. If you feel that any kind of verification is futile, it's ok, that would not stop us from buying the CDs. On Wed, Sep 11, 2013 at 10:32 PM, Kenneth R Westerback kwesterb...@rogers.com wrote: On Wed, Sep 11

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 from

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's no

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:

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 === RCS file:

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, signedness issue, even if it can't be INT_MAX

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 m...@m00nbsd.net wrote: + /* Ensure interp is a valid, NUL-terminated string */ + for (n =

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 or

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 mpieuc...@nolizard.org 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

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 be

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 dh...@mindcry.org writes: remove unused variables. Makes sense. ok? Index: ldconfig/prebind.c === RCS file:

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 dh...@mindcry.org 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

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 kwesterb...@rogers.com writes: On Sun, Jul 14, 2013 at 09:23:53AM +0200, J??r??mie Courr??ges-Anglas wrote: David Hill dh...@mindcry.org writes: remove unused variables. Makes sense

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 kwesterb...@rogers.com writes: On Sun, Jul 14, 2013 at 03:13:32PM +0200, J??r??mie Courr??ges-Anglas wrote: Kenneth R Westerback kwesterb...@rogers.com writes: On Sun, Jul 14, 2013 at 09

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 kwesterb...@rogers.com writes: On Sun, Jul 14, 2013 at 05:56:46PM +0200, J??r??mie Courr??ges-Anglas wrote: Kenneth R Westerback kwesterb...@rogers.com writes: On Sun, Jul 14, 2013 at 03

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 ~ 251252 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 depends

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, for

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 buffers

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

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

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 kwesterb...@rogers.com 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: Hey all, Time

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 makes it

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 LIST

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 operation

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 that

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 t...@tedunangst.com These isa devs are already disabled and not particularly popular among our users. affected: tcic,

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 m...@bodgit-n-scarper.com [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

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

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 mpieuc...@nolizard.org 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

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 file

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.README

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

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:

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 in

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 100644 ---

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 order of

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:

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 unable

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 ral0: MAC/BBP

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.. Index:

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 keep

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. Index:

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:

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 devices

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

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 current

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 === RCS

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

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:35 @@

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? But

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? Then

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. I'm aware

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 dera...@cvs.openbsd.org [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.

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 writing

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 mark.kette...@xs4all.nl Date: Sat, 25 Feb 2012 09:55:57 +0100 From: Paul de Weerd we...@weirdnet.nl I recently got a v215 from a friend and have

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 contains

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

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: gen/readdir.c

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. jmc 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-bugsm=132257956328474w=2 ntfs keeps a bunch of vnodes opened

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

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 upgrading without install kernel instructions), you

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 you follow the upgrading

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 Would

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 ok

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 s...@spacehopper.org wrote: ok? Index:

Re: impossible panic() in ifafree()

2011-07-22 Thread Kenneth R Westerback
On Fri, Jul 22, 2011 at 02:51:32PM +0200, Martin Pelikan wrote: Hi, this panic cannot possibly happen. The question is, whether to move it up to the macro that is used in the code, or zap it entirely. The whole logic in these two seems pretty ugly, but inet6 crashed when I tried to make it

Relax 2^28-1 (128G) installboot restriction

2011-07-18 Thread Kenneth R Westerback
Having a hard limit to ensure that OpenBSD will be able to boot on i386 and amd64 has smoked out at least some people who were successfully booting past that limit. So back off the error to a warning for now. ok? (Only compile tested on amd64 so far) Ken Index:

Re: malloc flags: even more strict 'S'

2011-07-12 Thread Kenneth R Westerback
On Tue, Jul 12, 2011 at 01:23:52PM +0200, Otto Moerbeek wrote: Hi, at the cost of some speed, reduce the malloc cache size to 0 with flag 'S'. This means that pages that become free will be unmapped asap. This detects more use-after-free bugs. The slowdown is because of more unmap/mmap

Re: small fix in ehci

2011-07-09 Thread Kenneth R Westerback
On Sat, Jul 09, 2011 at 06:44:26AM +0200, Eric Faurot wrote: So, there is actually another bug in that chunk of code. This diff fixes them: - Read the register from the correct location: HCSPARAMS is a capability register. - Construct the resulting mask correctly by adding

More disklabel fixes (hppa/hppa64/macppc/sgi)

2011-07-08 Thread Kenneth R Westerback
If we have successfully found and read in the disk block we expect to hold the OpenBSD disklabel, then what is there must be treated as the disklabel. If it is currently invalid (e.g. all zeros) we still want to write the new label in this MD location, and thus should pass the spoofed label back

Re: Kludge to 'fix' sdmmc_scsi.c

2011-07-08 Thread Kenneth R Westerback
On Fri, Jul 08, 2011 at 04:34:36PM -0700, Matthew Dempsky wrote: autoconf doesn't allow you to attach multiple child devices to the same device with different attach arg types. sdmmc(4) tries to attach both scsibus(4) and SDIO devices (currently just the disabled sbt(4) bluetooth adapter).

More archs should write disklabel where it will be read

2011-07-07 Thread Kenneth R Westerback
Without changing behaviour for native disklabels, allow some more archs that call readdoslabel() to read/write disklabels to same place as readdoslabel() reads from. The hppa paren chunk are to make hppa and hppa64 disksubr.c identical again. ok? Ken Index: hppa/hppa/disksubr.c

Re: memsets in bind

2011-07-05 Thread Kenneth R Westerback
On Tue, Jul 05, 2011 at 06:54:49PM +, Miod Vallat wrote: found by jsg. Index: lib/isc/hmacsha.c === RCS file: /home/tedu/cvs/src/usr.sbin/bind/lib/isc/hmacsha.c,v retrieving revision 1.1.1.1 diff -u -p -r1.1.1.1

  1   2   3   >