Subject: Re: dhcpd
To: Patrick Welche <prlw1@newn.cam.ac.uk>
From: Nicolas Joly <njoly@pasteur.fr>
List: tech-net
Date: 09/13/2007 16:21:27
On Thu, Sep 13, 2007 at 12:00:44PM +0100, Patrick Welche wrote:
> On Wed, Sep 12, 2007 at 08:09:09PM -0400, Greg Troxel wrote:
> > If anyone wants to try this change, I think it will fix dhcp, but I
> > haven't even compiled it. (The code looks like it has more problems -
> > lending weight to the 'all users of SIOCGIFCONF shoudl be converted to
> > getifaddrs.) The if being changed will never be taken in -current.
[...]
> I tried
>
> if (ifp -> ifr_addr.sa_len > sizeof (ifp -> ifr_ifru)) {
>
> as you suggest, and all is well!
It work better ... but this does not seems to be enough.
The MAC address used by dhclient is wrong :
bge0 at pci2 dev 9 function 0: Broadcom BCM5703X Gigabit Ethernet
bge0: interrupting at ioapic1 pin 0 (irq 11)
bge0: ASIC BCM5703 A2 (0x1002), Ethernet address 00:e0:81:31:59:61
brgphy0 at bge0 phy 1: BCM5703 1000BASE-T media interface, rev. 2
brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
Listening on BPF/bge0/00:e0:81:31:fa:14
Sending on BPF/bge0/00:e0:81:31:fa:14
Sending on Socket/fallback
DHCPREQUEST on bge0 to 255.255.255.255 port 67
DHCPREQUEST on bge0 to 255.255.255.255 port 67
DHCPREQUEST on bge0 to 255.255.255.255 port 67
DHCPDISCOVER on bge0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on bge0 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on bge0 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on bge0 to 255.255.255.255 port 67 interval 20
DHCPDISCOVER on bge0 to 255.255.255.255 port 67 interval 8
No DHCPOFFERS received.
Trying recorded lease 157.99.xx.xx
--
Nicolas Joly
Biological Software and Databanks.
Institut Pasteur, Paris.