Re: dhclient hang

2015-12-07 Thread Kenneth Westerback
I don't understand what you mean by hang? Does it hang the box? I would expect dhclient to reject the offer and try again. Does dhclient never try again? I'll take a closer look tomorrow, but if it isn't now it should be easy to fix dhclient to try again for a different lease. Ken On 7 Dec

Re: softraid and 4096-byte sectors 'fixed'

2015-07-22 Thread Kenneth Westerback
On 22 July 2015 at 12:36, Ted Unangst t...@tedunangst.com wrote: Kenneth R Westerback wrote: CAVEAT: The metadata version has changed so new volumes you create will not be loadable on boxes running older versions of OpenBSD. CAVEAT: You can't rebuild a volume created with *only* 512-byte

Re: softraid and 4096-byte sectors 'fixed'

2015-07-22 Thread Kenneth Westerback
On 22 July 2015 at 18:27, Karel Gardas gard...@gmail.com wrote: On Wed, Jul 22, 2015 at 6:43 PM, Kenneth Westerback kwesterb...@gmail.com wrote: On 22 July 2015 at 12:36, Ted Unangst t...@tedunangst.com wrote: Kenneth R Westerback wrote: CAVEAT: The metadata version has changed so new volumes

Do you need/prefer the non-DUID option in the installer?

2015-03-15 Thread Kenneth Westerback
Using DUIDs in the installed /etc/fstab has been the default for some time now. We'd like to eliminate the question in the installer and just use DUIDs unconditionally. But first we need to know you are aware of any circumstances where people need or prefer to use the non-DUID option when

Re: Do you need/prefer the non-DUID option in the installer?

2015-03-15 Thread Kenneth Westerback
On 15 March 2015 at 23:38, Theo de Raadt dera...@cvs.openbsd.org wrote: The only thing I'd like to have is a command or easy way to convert a duid to a /dev/sd0a name to use current - or future - utilities that don't support DUID like badblocks from e2fsprogs in ports... In disklabel, you

OpenBSD Foundation GSOC 2015

2015-03-04 Thread Kenneth Westerback
The OpenBSD Foundation is pleased to announce that we have been accepted as a mentoring organization for Google Summer of Code 2015. As such if you are a student who qualifies to apply for GSOC, you will be able to find us in Google's Summer of Code Application process.For details on the

Re: sys/msdosfs: off by one

2014-06-17 Thread Kenneth Westerback
On 17 June 2014 17:43, Tobias Stoeckmann tob...@stoeckmann.org wrote: On Mon, Jun 16, 2014 at 04:43:02PM -0700, John-Mark Gurney wrote: FreeBSD fixed this by increasing the malloc size: https://svnweb.freebsd.org/changeset/base/r126086 Which is actually the correct way to do here!

Re: fsck_msdos: out of boundary on file truncation

2014-06-17 Thread Kenneth Westerback
On 17 June 2014 18:09, Tobias Stoeckmann tob...@stoeckmann.org wrote: Hi, fsck_msdos checks for linked cluster chains, which means that two chains cross each other at the same cluster. If 1 links to 3 and 2 links to 3, the cluster chains starting at 1 and 2 are linked. This error condition

Re: fsck_msdos: fix possible infinite loop

2014-06-14 Thread Kenneth Westerback
On 14 June 2014 09:09, Tobias Stoeckmann tob...@stoeckmann.org wrote: Hi, fsck_msdos is prone to an infinite loop if cluster chains in the filesystem are infinite: FAT handles clusters as linked lists, and at worst this list can be cyclic. Android included a fix from Samsung for this issue,

Re: fsck_msdos: fix possible infinite loop

2014-06-14 Thread Kenneth Westerback
On 14 June 2014 11:57, Tobias Stoeckmann tob...@stoeckmann.org wrote: On Sat, Jun 14, 2014 at 11:25:22AM -0400, Kenneth Westerback wrote: /* follow the chain to its end (hopefully) */ - for (p = head; + for (len = fat[head].length, p = head

Re: We can dump(8) more than 2TB

2014-06-12 Thread Kenneth Westerback
On 12 June 2014 15:59, Christian Weisgerber na...@mips.inka.de wrote: Ted Unangst: -intblockswritten; /* number of blocks written on current tape */ +off_t blockswritten; /* number of blocks written on current tape */ time_t tstart_writing; /* when started writing the

Re: NOINET6 by default

2014-06-08 Thread Kenneth Westerback
On 8 June 2014 11:14, Henning Brauer lists-openbsdt...@bsws.de wrote: 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 if inet6 eui64 reset the NOINET6 flag unconditionally, so

Re: Create a default local route for every IPv4 address

2014-05-28 Thread Kenneth Westerback
On 28 May 2014 10:15, Martin Pieuchot mpieuc...@nolizard.org 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

Re: Create a default local route for every IPv4 address

2014-05-28 Thread Kenneth Westerback
On 28 May 2014 10:18, Kenneth Westerback kwesterb...@gmail.com wrote: On 28 May 2014 10:15, Martin Pieuchot mpieuc...@nolizard.org 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

Re: Create a default local route for every IPv4 address

2014-05-26 Thread Kenneth Westerback
On 26 May 2014 06:10, Martin Pieuchot mpieuc...@nolizard.org wrote: Diff below changes the behavior of the kernel to add a route for every new IPv4 address, when it is configured on an interface. Actually such route is created the first time a program tries to resolve it. That's why with

Re: move all stats under MALLOC_STATS

2014-05-22 Thread Kenneth Westerback
On 22 May 2014 07:29, Otto Moerbeek o...@drijf.net wrote: Hi, some stats are always computed. Move them under #ifdef MALLOC_STATS And a small thing for error reporting. ok? Makes sense to me, looks good. ok krw@ Ken -Otto Index: malloc.c

Re: mountd: handle unresolvable hosts in a netgroup

2014-05-16 Thread Kenneth Westerback
On 16 May 2014 12:54, Todd C. Miller todd.mil...@courtesan.com wrote: Currently, if you have a host netgroup with an unresolvable hostname, the file system will not be exported to any of the netgroup members. This is because we don't zero out grp before reusing it when a host is unresolvable.

Re: ifconfig segmentation fault

2014-05-16 Thread Kenneth Westerback
On 16 May 2014 15:00, Giancarlo Razzolini grazzol...@gmail.com wrote: Hi, I was configuring one new interface in one of my new machines, and I disabled ipv6 with -inet6 as I always do. But I handcrafted the hostname.if file and forgot to put a NONE in the broadcast address. This caused

Re: NOINET6 by default

2014-05-14 Thread Kenneth Westerback
On 14 May 2014 18:14, Alexander Bluhm alexander.bl...@gmx.net wrote: On Wed, May 14, 2014 at 11:29:20PM +0200, Henning Brauer wrote: so as discussed recently having the inet6 link-local addrs on every interface by default is stupid and a security risk. Connecting a computer to the internet is

Re: uchcom(4) did not work

2014-05-13 Thread Kenneth Westerback
On 13 May 2014 21:09, Mike Larkin mlar...@azathoth.net wrote: On Wed, May 14, 2014 at 10:01:28AM +0900, SASANO Takayoshi wrote: Hi, Mike. + val = 0x501f; + idx = 0xd90a; What are these magic numbers? These numbers come from Linux driver (ch341.c). I don't know what they mean. Maybe

Re: dhclient bug when joining new wireless lan

2014-05-11 Thread Kenneth Westerback
On 11 May 2014 05:26, Creamy cre...@dishplanning.com wrote: Hello again! OK, this time it's a bug, (or is it a feature?), in dhclient. Imagine that you have two separate wireless networks, which operate independently using the same private address spaces and offer leases based on the same

Re: dhclient bug when joining new wireless lan

2014-05-11 Thread Kenneth Westerback
On 11 May 2014 06:03, Kenneth Westerback kwesterb...@gmail.com wrote: On 11 May 2014 05:26, Creamy cre...@dishplanning.com wrote: Hello again! OK, this time it's a bug, (or is it a feature?), in dhclient. Imagine that you have two separate wireless networks, which operate independently

Re: dhclient bug when joining new wireless lan

2014-05-11 Thread Kenneth Westerback
On 11 May 2014 06:38, Creamy cre...@dishplanning.com wrote: On Sun, May 11, 2014 at 06:03:24AM -0400, Kenneth Westerback wrote: On 11 May 2014 05:26, Creamy cre...@dishplanning.com wrote: Hello again! OK, this time it's a bug, (or is it a feature?), in dhclient. Imagine that you have

Re: dhclient bug when joining new wireless lan

2014-05-11 Thread Kenneth Westerback
On 11 May 2014 07:00, Creamy cre...@dishplanning.com wrote: On Sun, May 11, 2014 at 06:31:23AM -0400, Kenneth Westerback wrote: On 11 May 2014 06:03, Kenneth Westerback kwesterb...@gmail.com wrote: On 11 May 2014 05:26, Creamy cre...@dishplanning.com wrote: Hello again! OK, this time

Re: [PATCH] comparison between signed and unsigned in rcs

2014-05-09 Thread Kenneth Westerback
On 9 May 2014 11:41, Fritjof Bornebusch frit...@alokat.org wrote: On Wed, May 07, 2014 at 08:59:03PM +0200, Fritjof Bornebusch wrote: On Wed, May 07, 2014 at 08:05:35PM +0200, J??r??mie Courr??ges-Anglas wrote: Fritjof Bornebusch frit...@alokat.org writes: [...] Does no one want to

Re: [PATCH] comparison between signed and unsigned in rcs

2014-05-09 Thread Kenneth Westerback
On 9 May 2014 11:47, Kenneth Westerback kwesterb...@gmail.com wrote: On 9 May 2014 11:41, Fritjof Bornebusch frit...@alokat.org wrote: On Wed, May 07, 2014 at 08:59:03PM +0200, Fritjof Bornebusch wrote: On Wed, May 07, 2014 at 08:05:35PM +0200, J??r??mie Courr??ges-Anglas wrote: Fritjof

Re: Fix the mtime for file creation on ext2+

2014-05-06 Thread Kenneth Westerback
On 6 May 2014 06:42, Vadim Zhukov persg...@gmail.com wrote: Hello all. This fixes a bug with mtime not updated after file creation on ext2+ file systems. Try it yourself: # mount -t ext2fs /dev/sd0o /mnt # cp /tmp/qq /mnt # ls -l /mnt/qq -rw-r--r-- 1 root wheel 10 Jan 1 1970 qq #

Re: Remove ln -F

2014-05-06 Thread Kenneth Westerback
On 6 May 2014 11:45, Ingo Schwarze schwa...@usta.de wrote: Hi, if somebody wants to commit, ok schwarze@. Otherwise, i'm accepting OKs. See inline for a note on the history. Yours, Ingo Makes sense to me ok krw@, unless a history buff speaks up for it. Ken Tristan Le Guern

Re: Fix the mtime for file creation on ext2+

2014-05-06 Thread Kenneth Westerback
On 6 May 2014 15:12, Vadim Zhukov persg...@gmail.com wrote: 06.05.2014 19:36 пользователь Philip Guenther guent...@gmail.com написал: On Tue, 6 May 2014, Vadim Zhukov wrote: This fixes a bug with mtime not updated after file creation on ext2+ file systems. Try it yourself: # mount -t

Re: [PATCH] 1 of 2 s3_lib.c KNF retry

2014-05-03 Thread Kenneth Westerback
On 3 May 2014 20:29, Philip Guenther guent...@gmail.com wrote: On Sat, May 3, 2014 at 12:40 PM, Chris Hettrick ch...@foo.structfoo.comwrote: I was too ambitious with the previous diffs. Here they are again. First diff is whitespace only that can be checked with tr and md5. Second diff is

Re: [RFC] Ai_ADDRCONFIG^WAIAIAIAIAIAIAEEEEEEEEE tweaks?

2014-05-02 Thread Kenneth Westerback
On 2 May 2014 13:24, Bob Beck b...@obtuse.com wrote: Honestly folks, I'm sick of the attitude of The future is nigh, the mystic portal awaits! V6 is coming! as an excuse for we *MUST* change things related to this. We've been hearing the mystic portal awaits for 15 years - and yet MANY of us

Re: [RFC] Ai_ADDRCONFIG^WAIAIAIAIAIAIAEEEEEEEEE tweaks?

2014-05-02 Thread Kenneth Westerback
On 2 May 2014 16:08, Paul de Weerd we...@weirdnet.nl wrote: On Fri, May 02, 2014 at 09:59:09PM +0200, Henning Brauer wrote: | * Paul de Weerd we...@weirdnet.nl [2014-05-02 21:20]: | On Fri, May 02, 2014 at 06:53:08PM +0200, Jérémie Courrèges-Anglas wrote: | [connectivity via link-local] | |

Re: [RFC] Ai_ADDRCONFIG^WAIAIAIAIAIAIAEEEEEEEEE tweaks?

2014-05-02 Thread Kenneth Westerback
On 2 May 2014 16:25, Philip Guenther guent...@gmail.com wrote: On Fri, May 2, 2014 at 1:14 PM, Kenneth Westerback kwesterb...@gmail.com wrote: -inet6 as the default seems more OpenBSD'ish to me. Everything off that can be off, but not more. That is not off which can eternal lie

Re: data modified on freelist, tmpfs-related?

2014-04-30 Thread Kenneth Westerback
On 30 April 2014 10:55, Mark Kettenis mark.kette...@xs4all.nl wrote: From: Mike Belopuhov m...@belopuhov.com Date: Wed, 30 Apr 2014 16:00:45 +0200 On 30 April 2014 15:55, Mark Kettenis mark.kette...@xs4all.nl wrote: Date: Wed, 30 Apr 2014 15:38:39 +0200 (CEST) From: Mark Kettenis

Re: IPv6 by default

2014-04-29 Thread Kenneth Westerback
On 29 April 2014 08:57, Simon Perreault si...@per.reau.lt wrote: Le 2014-04-28 18:43, Kenneth Westerback a écrit : Why is the burden on everyone to provide 'valid' objections? I know that what I proposed cannot go in at the moment. It's my end goal. Now what I want is to have a clear picture

Re: IPv6 by default

2014-04-29 Thread Kenneth Westerback
On 29 April 2014 09:59, Simon Perreault si...@per.reau.lt wrote: Le 2014-04-29 09:44, Kenneth Westerback a écrit : Why would having the IPv6 addresses come first in the returned list be required to 'use' them? Please explain. Well I thought this would be obvious, but applications using

Re: patch: use a lookup table in BIO_get_port()

2014-04-29 Thread Kenneth Westerback
On 29 April 2014 10:42, Dimitris Papastamos s...@2f30.org wrote: Not sure this is sensible as it encourages people to simply update the table. I was inclined to remove the code entirely but I am not sure what broken systems might rely on this. Only build tested. Thoughts? Index:

Re: IPv6 by default

2014-04-29 Thread Kenneth Westerback
On 29 April 2014 12:57, Christian Weisgerber na...@mips.inka.de wrote: On 2014-04-29, Mark Kettenis mark.kette...@xs4all.nl wrote: Google's data [1] shows a few third-world countries where what you say is true, plus Japan because of a single particularly broken ISP [2]. Isn't there a

Re: IPv6 by default

2014-04-28 Thread Kenneth Westerback
On 28 April 2014 18:05, Simon Perreault si...@per.reau.lt wrote: Tech, Now that my AI_ADDRCONFIG diff is in, it's time to reveal my evil master plan: make getaddrinfo() return IPv6 results first by default. Why is the burden on everyone to provide 'valid' objections? Should not the burden be

Re: autoinstall(8): remove System hostname from example

2014-04-26 Thread Kenneth Westerback
On 26 April 2014 06:21, Patrik Lundin patrik.lundin@gmail.com wrote: Hello, I have tried out the autoinstall functionality and it worked great. The install log turning up as an email was a very nice touch. One thing that I was thinking about when looking at the examples in

Re: autoinstall(8): remove System hostname from example

2014-04-26 Thread Kenneth Westerback
On 26 April 2014 07:45, Patrik Lundin patrik.lundin@gmail.com wrote: On Sat, Apr 26, 2014 at 07:21:28AM -0400, Kenneth Westerback wrote: Assuming you mean dhclient.conf and not dhcpd.conf, the hostname of the system is not currently set by dhclient even if it is supplied. The install

Re: LibreSSL OPENSSL_malloc... removal

2014-04-22 Thread Kenneth Westerback
On 22 April 2014 08:49, Vadim Lebedev va...@mbdsys.com wrote: Hello folks, The removal of OPENSSL_malloc/OPENSSL_free ... etc will cause a LOT of pain There is non négligeable number of applications which are strongly depending on this functionality, they use it for example to allocate

Re: segfault in dhclient 5.4 please help

2014-04-15 Thread Kenneth Westerback
On 15 April 2014 08:34, Otto Moerbeek o...@drijf.net wrote: On Mon, Apr 14, 2014 at 09:32:43PM -0400, sven falempin wrote: so i got gdb back to the machine because i cannot reproduce outside of the box. gdb too old cannot gcore. The state is nasty, but i do get the trace of the dhcp

Re: rs, jot: missing headers

2014-04-12 Thread Kenneth Westerback
On 12 April 2014 10:47, Ralph Siegler rsieg...@rsiegler.org wrote: On Fri, 11 Apr 2014 22:56:52 -0700, Philip Guenther wrote: Meanwhile, OpenBSD doesn't have the 100% 2008.1 beef stamp on its hind quarters but will compile and run code having those functions..which is better? Best for

Re: libpcap: malloc+memset - calloc

2014-03-12 Thread Kenneth Westerback
On 11 March 2014 23:43, Lawrence Teo l...@openbsd.org wrote: This changes a few malloc()+memset() calls to calloc(). OK? Index: gencode.c === RCS file: /cvs/src/lib/libpcap/gencode.c,v retrieving revision 1.36 diff -u -p

Re: 5.5 and dual-boot

2014-03-07 Thread Kenneth Westerback
On Mar 7, 2014 1:10 PM, Wade, Daniel dw...@meridium.com wrote: I've been dual booting for years and never once use dd to copy the openbsd.pbr If I'm in windows world and want to boot into OpenBSD I run diskpart and flip the active partition. Same in the other direction, fdisk -e and flip the

Re: Yesterday Snapshot

2014-03-04 Thread Kenneth Westerback
On 4 March 2014 08:41, sven falempin sven.falem...@gmail.com wrote: Installing the snapshot on external HD, when using W for all disk the installer created only a very small Partition (Disk was clean, all 4 base partitions empty. Not present in 5.4 (i tried, it creates the layout, then i use

Re: Yesterday Snapshot

2014-03-04 Thread Kenneth Westerback
On 4 March 2014 12:59, sven falempin sven.falem...@gmail.com wrote: I did it again with another disk: Which disk is the root disk? ('?' for details) [sd0] Use DUIDs rather than device names in fstab? [yes] Disk: sd0 geometry: 500/8/32 [312581808 Sectors] Offset: 0

Re: i386 install bug on recent snap

2014-02-22 Thread Kenneth Westerback
On 21 February 2014 23:31, Rod Whitworth glis...@witworx.com wrote: I can see why this one goes unnoticed. When I grab a snapshot and install on a test machine I make a practice of deleting the k partition because I don't need it and it takes ages to newfs it. (Slow Atom box) Today it

Re: i386 install bug on recent snap

2014-02-22 Thread Kenneth Westerback
On 22 February 2014 07:03, Kenneth Westerback kwesterb...@gmail.com wrote: On 21 February 2014 23:31, Rod Whitworth glis...@witworx.com wrote: I can see why this one goes unnoticed. When I grab a snapshot and install on a test machine I make a practice of deleting the k partition because I

Re: Vax

2014-02-21 Thread Kenneth Westerback
On 21 February 2014 18:21, dera...@cvs.openbsd.org wrote: I would like to thank the members of the community who deliver four vax machines to the project. Vax builds have started again! Snaps at 11! (i.e. November). :-) Ken

Re: zap man.template

2014-02-16 Thread Kenneth Westerback
Zap++ Ken On 16 February 2014 10:47, Mark Kettenis mark.kette...@xs4all.nl wrote: Date: Sun, 16 Feb 2014 15:39:15 +0100 From: Ingo Schwarze schwa...@usta.de Hi, the file /usr/share/misc/man.template is horribly outdated and incomplete, compare it to mdoc.template in the same

Re: OpenBSD joining worldwide software patent non-agression community

2014-02-14 Thread Kenneth Westerback
On 14 February 2014 14:37, Valer Mischenko vmische...@openinventionnetwork.com wrote: Hi the OpenBSD team, Ken Westerback advised me to appeal to you as a collective. Well, my exact word were You can try appealing to tech@openbsd.org, but I'd rate the chances of a previously secret

Re: netstat strtonum

2014-02-13 Thread Kenneth Westerback
I agree. ok krw@ Ken On 13 February 2014 11:54, Ted Unangst t...@tedunangst.com wrote: replace some calls to atoi with strtonum so that netstat -w 0 doesn't do weird stuff. Index: main.c === RCS file:

Re: strptime() fix

2014-02-13 Thread Kenneth Westerback
On 13 February 2014 17:39, Todd C. Miller todd.mil...@courtesan.com wrote: Correct, though I prefer the following for clarity. - todd Index: lib/libc/time/strptime.c === RCS file:

Re: ok to kill stdio.h in strsep.c?

2014-02-05 Thread Kenneth Westerback
ok krw@ On 5 February 2014 13:15, Stefan Sperling s...@openbsd.org wrote: On Sat, Jan 25, 2014 at 01:49:24AM -0500, Jean-Philippe Ouellet wrote: It appeared in revision 1.3 (Update from lite2.) It's the only one in the string family that has it, and nothing from it is used. I think this

Re: signed packages

2014-01-22 Thread Kenneth Westerback
We did print the whole blowfish implementation on the back of a t-shirt, and I can still read mine. So a key should not be a problem. :-) . Ken On 23 January 2014 09:13, Ted Unangst t...@tedunangst.com wrote: On Wed, Jan 22, 2014 at 11:28, Stuart Henderson wrote: (IIRC somebody

Re: rc default PF ruleset too restrictive for DHCPv6

2014-01-19 Thread Kenneth Westerback
*But what is the practical problem being addressed? Is dhcp not functional with the existing default **ruleset?* * Ken* On 19 January 2014 19:39, Brad Smith b...@comstyle.com wrote: On Sun, Jan 19, 2014 at 04:10:21AM +0100, Claudio Jeker wrote: On Sat, Jan 18, 2014 at 09:57:26PM -0500,

Re: rc default PF ruleset too restrictive for DHCPv6

2014-01-18 Thread Kenneth Westerback
send_packet() sends packets out a raw socket unless the destination is INADDR_BROADCAST, in which case it sends the packet out via bpf. Ken On 19 Jan 2014 17:33, Brad Smith b...@comstyle.com wrote: On Sun, Jan 19, 2014 at 04:10:21AM +0100, Claudio Jeker wrote: On Sat, Jan 18, 2014 at

Re: dhclient support for /32 assignments

2013-12-03 Thread Kenneth Westerback
Rfc 3442 is what I referred to. Ken On 3 Dec 2013 22:54, Matthew Dempsky matt...@dempsky.org wrote: On Tue, Dec 3, 2013 at 5:55 PM, Kenneth R Westerback kwesterb...@rogers.com wrote: Located here, the addition of the 255.255.255.255 route is not done in the presence of

Re: spelling kate.4

2009-12-12 Thread Kenneth Westerback
On Sat, Dec 12, 2009 at 12:42 PM, Jason McIntyre j...@kerhand.co.uk wrote: On Sat, Dec 12, 2009 at 07:03:54PM +1100, Rod Whitworth wrote: this was probably meant to be aforementioned. jmc And you could take out all the agony by saying: in the same address space as the revisions mentioned