Package: klibc-utils
Version: 1.4.34-1
As we are using FAI to install our computers, the ipconfig
binary in the klibc-utils package is used to obtain the
IP configuration from a DHCP server at boot time, when
installing a computer.
A normal DHCP process looks like this:
DHCPDISCOVER (client->server)
DHCPOFFER (server->client)
DHCPREQUEST (client->server)
DHCPACK (server->client)
Using the ipconfig tool in the klibc-utils, the procedure
looks like this:
DHCPDISCOVER (client->server)
DHCPOFFER (server->client)
DHCPREQUEST (client->server)
The DHCPACK is missing, an there is never an
IP configuration obtained.
It seems, that not transmitting an bootp gateway in
the DHCPREQUEST package solves this Problem.
(Patch attached)
diff -urN klibc-orig-1.4.34/usr/kinit/ipconfig/dhcp_proto.c
klibc-1.4.34/usr/kinit/ipconfig/dhcp_proto.c
--- klibc-orig-1.4.34/usr/kinit/ipconfig/dhcp_proto.c 2007-07-12
17:29:13.000000000 +0200
+++ klibc-1.4.34/usr/kinit/ipconfig/dhcp_proto.c 2007-07-12
17:30:22.000000000 +0200
@@ -161,7 +161,7 @@
bootp.hlen = dev->hwlen;
bootp.xid = dev->bootp.xid;
bootp.ciaddr = dev->ip_addr;
- bootp.giaddr = dev->bootp.gateway;
+ bootp.giaddr = INADDR_ANY;
bootp.secs = htons(time(NULL) - dev->open_time);
memcpy(bootp.chaddr, dev->hwaddr, 16);
Best regards,
Christian Kern