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 2

Re: softraid and 4096-byte sectors 'fixed'

2015-07-22 Thread Kenneth Westerback
On 22 July 2015 at 18:27, Karel Gardas wrote: > On Wed, Jul 22, 2015 at 6:43 PM, Kenneth Westerback > wrote: >> On 22 July 2015 at 12:36, Ted Unangst wrote: >>> Kenneth R Westerback wrote: >>>> CAVEAT: The metadata version has changed so new volumes you create &

Re: softraid and 4096-byte sectors 'fixed'

2015-07-22 Thread Kenneth Westerback
On 22 July 2015 at 12:36, Ted Unangst 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 >> devices onto

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 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 can see the duid

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 install

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 applicatio

Re: fsck_msdos: out of boundary on file truncation

2014-06-17 Thread Kenneth Westerback
On 17 June 2014 18:09, Tobias Stoeckmann 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 can be fixed du

Re: sys/msdosfs: off by one

2014-06-17 Thread Kenneth Westerback
On 17 June 2014 17:43, Tobias Stoeckmann 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! > > pmp->pm_maxcluster is

Re: fsck_msdos: fix possible infinite loop

2014-06-14 Thread Kenneth Westerback
On 14 June 2014 11:57, Tobias Stoeckmann 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 (le

Re: fsck_msdos: fix possible infinite loop

2014-06-14 Thread Kenneth Westerback
On 14 June 2014 09:09, Tobias Stoeckmann 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, with the commi

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

2014-06-12 Thread Kenneth Westerback
On 12 June 2014 15:59, Christian Weisgerber 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 first tap

Re: NOINET6 by default

2014-06-08 Thread Kenneth Westerback
On 8 June 2014 11:14, Henning Brauer 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 inet6 eui64" reset the NOINET6 flag > unconditionally, so a link-local will be

Re: Create a default local route for every IPv4 address

2014-05-28 Thread Kenneth Westerback
On 28 May 2014 10:18, Kenneth Westerback wrote: > On 28 May 2014 10:15, Martin Pieuchot wrote: >> On 26/05/14(Mon) 15:17, Martin Pieuchot wrote: >>> On 26/05/14(Mon) 08:03, Kenneth Westerback wrote: >>> > [...] >>> > >>> > dhclient used to

Re: Create a default local route for every IPv4 address

2014-05-28 Thread Kenneth Westerback
On 28 May 2014 10:15, Martin Pieuchot wrote: > On 26/05/14(Mon) 15:17, Martin Pieuchot wrote: >> On 26/05/14(Mon) 08:03, Kenneth Westerback wrote: >> > [...] >> > >> > dhclient used to create such routes but that was removed as useless so >> > I'

Re: Create a default local route for every IPv4 address

2014-05-26 Thread Kenneth Westerback
On 26 May 2014 06:10, Martin Pieuchot 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 this diff you don't se

Re: move all stats under MALLOC_STATS

2014-05-22 Thread Kenneth Westerback
On 22 May 2014 07:29, Otto Moerbeek 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: ifconfig segmentation fault

2014-05-16 Thread Kenneth Westerback
On 16 May 2014 15:00, Giancarlo Razzolini 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 the ifconfig to

Re: mountd: handle unresolvable hosts in a netgroup

2014-05-16 Thread Kenneth Westerback
On 16 May 2014 12:54, Todd C. Miller 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. > > - todd > > Index:

Re: NOINET6 by default

2014-05-14 Thread Kenneth Westerback
On 14 May 2014 18:14, Alexander Bluhm 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 a security risk.

Re: uchcom(4) did not work

2014-05-13 Thread Kenneth Westerback
On 13 May 2014 21:09, Mike Larkin 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. >> M

Re: dhclient bug when joining new wireless lan

2014-05-11 Thread Kenneth Westerback
On 11 May 2014 07:00, Creamy wrote: > On Sun, May 11, 2014 at 06:31:23AM -0400, Kenneth Westerback wrote: >> On 11 May 2014 06:03, Kenneth Westerback wrote: >> > >> > On 11 May 2014 05:26, "Creamy" wrote: >> >> >> >> Hello again! &g

Re: dhclient bug when joining new wireless lan

2014-05-11 Thread Kenneth Westerback
On 11 May 2014 06:38, Creamy wrote: > On Sun, May 11, 2014 at 06:03:24AM -0400, Kenneth Westerback wrote: >> On 11 May 2014 05:26, "Creamy" wrote: >> > >> > Hello again! >> > >> > OK, this time it's a bug, (or is it a feature?), in dhc

Re: dhclient bug when joining new wireless lan

2014-05-11 Thread Kenneth Westerback
On 11 May 2014 06:03, Kenneth Westerback wrote: > > On 11 May 2014 05:26, "Creamy" wrote: >> >> Hello again! >> >> OK, this time it's a bug, (or is it a feature?), in dhclient. >> >> Imagine that you have two separate wireless networ

Re: dhclient bug when joining new wireless lan

2014-05-11 Thread Kenneth Westerback
On 11 May 2014 05:26, "Creamy" 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 algorithm comp

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

2014-05-09 Thread Kenneth Westerback
On 9 May 2014 11:47, Kenneth Westerback wrote: > On 9 May 2014 11:41, Fritjof Bornebusch 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: >>> &

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

2014-05-09 Thread Kenneth Westerback
On 9 May 2014 11:41, Fritjof Bornebusch 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 writes: >> > >> > [...] >> > >> > > Does no one want to check the diff and g

Re: Fix the mtime for file creation on ext2+

2014-05-06 Thread Kenneth Westerback
On 6 May 2014 15:12, Vadim Zhukov wrote: > 06.05.2014 19:36 пользователь "Philip Guenther" > написал: >> >> 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 ext2fs /dev/sd0o /

Re: Remove ln -F

2014-05-06 Thread Kenneth Westerback
On 6 May 2014 11:45, Ingo Schwarze 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 wrote

Re: Fix the mtime for file creation on ext2+

2014-05-06 Thread Kenneth Westerback
On 6 May 2014 06:42, Vadim Zhukov 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 > # touch /m

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

2014-05-03 Thread Kenneth Westerback
On 3 May 2014 20:29, Philip Guenther wrote: > On Sat, May 3, 2014 at 12:40 PM, Chris Hettrick > wrote: >> >> 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 for non-whitespace KNF cleanup. >>

Re: [RFC] Ai_ADDRCONFIG^WAIAIAIAIAIAIAEEEEEEEEE tweaks?

2014-05-02 Thread Kenneth Westerback
On 2 May 2014 16:25, Philip Guenther wrote: > On Fri, May 2, 2014 at 1:14 PM, Kenneth Westerback > 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 etern

Re: [RFC] Ai_ADDRCONFIG^WAIAIAIAIAIAIAEEEEEEEEE tweaks?

2014-05-02 Thread Kenneth Westerback
On 2 May 2014 16:08, Paul de Weerd wrote: > On Fri, May 02, 2014 at 09:59:09PM +0200, Henning Brauer wrote: > | * Paul de Weerd [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] > | > | Not really, I'm puzzled by

Re: [RFC] Ai_ADDRCONFIG^WAIAIAIAIAIAIAEEEEEEEEE tweaks?

2014-05-02 Thread Kenneth Westerback
On 2 May 2014 13:24, Bob Beck 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 in MANY

Re: data modified on freelist, tmpfs-related?

2014-04-30 Thread Kenneth Westerback
On 30 April 2014 10:55, Mark Kettenis wrote: >> From: Mike Belopuhov >> Date: Wed, 30 Apr 2014 16:00:45 +0200 >> >> On 30 April 2014 15:55, Mark Kettenis wrote: >> >> Date: Wed, 30 Apr 2014 15:38:39 +0200 (CEST) >> >> From: Mark Kettenis >> >> >> >> > Date: Wed, 30 Apr 2014 13:39:20 +0100 >> >>

Re: IPv6 by default

2014-04-29 Thread Kenneth Westerback
On 29 April 2014 12:57, Christian Weisgerber wrote: > On 2014-04-29, Mark Kettenis 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 correlation between those countries a

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

2014-04-29 Thread Kenneth Westerback
On 29 April 2014 10:42, Dimitris Papastamos 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: b_sock.c >

Re: IPv6 by default

2014-04-29 Thread Kenneth Westerback
On 29 April 2014 09:59, Simon Perreault 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 a

Re: IPv6 by default

2014-04-29 Thread Kenneth Westerback
On 29 April 2014 08:57, Simon Perreault 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

Re: IPv6 by default

2014-04-28 Thread Kenneth Westerback
On 28 April 2014 18:05, Simon Perreault 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 on you to at l

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

2014-04-26 Thread Kenneth Westerback
On 26 April 2014 07:45, Patrik Lundin 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

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

2014-04-26 Thread Kenneth Westerback
On 26 April 2014 06:21, Patrik Lundin 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 > autoinstall(8) was that while "Sys

Re: LibreSSL OPENSSL_malloc... removal

2014-04-22 Thread Kenneth Westerback
On 22 April 2014 08:49, Vadim Lebedev 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 SSL data st

Re: segfault in dhclient 5.4 please help

2014-04-15 Thread Kenneth Westerback
On 15 April 2014 08:34, Otto Moerbeek 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 transacti

Re: rs, jot: missing headers

2014-04-12 Thread Kenneth Westerback
On 12 April 2014 10:47, Ralph Siegler 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 what?

Re: libpcap: malloc+memset -> calloc

2014-03-12 Thread Kenneth Westerback
On 11 March 2014 23:43, Lawrence Teo 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 -r1.36 gen

Re: 5.5 and dual-boot

2014-03-07 Thread Kenneth Westerback
On Mar 7, 2014 1:10 PM, "Wade, Daniel" 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 active back to

Re: Snapshot

2014-03-04 Thread Kenneth Westerback
On 4 March 2014 12:59, sven falempin 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 Signature: 0xAA55 >

Re: Snapshot

2014-03-04 Thread Kenneth Westerback
On 4 March 2014 08:41, sven falempin 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 empty. > > Not present in 5.4 (i tried, it creates the layout, then i use the snapshot > 5.5 and use >

Re: i386 install bug on recent snap

2014-02-22 Thread Kenneth Westerback
On 22 February 2014 07:03, Kenneth Westerback wrote: > On 21 February 2014 23:31, Rod Whitworth 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&

Re: i386 install bug on recent snap

2014-02-22 Thread Kenneth Westerback
On 21 February 2014 23:31, Rod Whitworth 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 caught me. Going t

Re: Vax

2014-02-21 Thread Kenneth Westerback
On 21 February 2014 18:21, 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 wrote: >> Date: Sun, 16 Feb 2014 15:39:15 +0100 >> From: Ingo Schwarze >> >> Hi, >> >> the file /usr/share/misc/man.template is horribly outdated and >> incomplete, compare it to mdoc.template in the same directory. >> >> I think deleting

Re: OpenBSD joining worldwide software patent non-agression community

2014-02-14 Thread Kenneth Westerback
On 14 February 2014 14:37, Valer Mischenko 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 organization controlling OpenBSD patents s

Re: strptime() fix

2014-02-13 Thread Kenneth Westerback
On 13 February 2014 17:39, Todd C. Miller wrote: > Correct, though I prefer the following for clarity. > > - todd > > Index: lib/libc/time/strptime.c > === > RCS file: /home/cvs/openbsd/src/lib/libc/time/strptime.c,v > retrieving rev

Re: netstat strtonum

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

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

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 wrote: > On Wed, Jan 22, 2014 at 11:28, Stuart Henderson wrote: > > (IIRC somebody suggested printing keys o

Re: kill RN_DEBUG code

2014-01-22 Thread Kenneth Westerback
RIP. ok krw@ On 22 January 2014 23:05, Claudio Jeker wrote: > The RN_DEBUG code is broken since rev 1.1 > I see no reason to keep it any longer and removing the code makes the > result easier to read. > > OK? > -- > :wq Claudio > > Index: net/radix.c > ==

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 wrote: > On Sun, Jan 19, 2014 at 04:10:21AM +0100, Claudio Jeker wrote: > > On Sat, Jan 18, 2014 at 09:57:26PM -0500, Brad wrote: > >

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" 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: 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" wrote: > On Tue, Dec 3, 2013 at 5:55 PM, Kenneth R Westerback > wrote: > > Located here, the addition of the 255.255.255.255 route is not done in > the > > presence of DHO_CLASSLESS_STATIC_ROUTES. As I recall only D

Re: spelling kate.4

2009-12-12 Thread Kenneth Westerback
On Sat, Dec 12, 2009 at 12:42 PM, Jason McIntyre 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