Subject: Re: dhcpd
To: Nicolas Joly <njoly@pasteur.fr>
From: Greg Troxel <gdt@ir.bbn.com>
List: current-users
Date: 09/13/2007 14:55:44
I have commited a fix to SIOCGIFCONF in the kernel to copy the entire
MAC address, after Nicolas confirms that it fixes the problem.

From: Greg Troxel <gdt@netbsd.org>
Subject: CVS commit: src/sys/net
To: source-changes@NetBSD.org
Date: Thu, 13 Sep 2007 18:54:58 +0000 (UTC)
Reply-To: gdt@netbsd.org


Module Name:	src
Committed By:	gdt
Date:		Thu Sep 13 18:54:57 UTC 2007

Modified Files:
	src/sys/net: if.c if.h

Log Message:
Add a define for the ifru_space union member.

Copy the entire sockaddr to the buffer to be written to user space,
according to its length, not just the part that fits in struct
sockaddr.

This fixes the 'bad MAC address' problem in dhclient.


To generate a diff of this commit:
cvs rdiff -r1.200 -r1.201 src/sys/net/if.c
cvs rdiff -r1.126 -r1.127 src/sys/net/if.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.