I just recompiled ipconfig "once" and I got it working
I can confirm that   /klibc-2.0.4/usr/kinit/ipconfig/dhcp_proto.c
did not fix this bug yet 

static int dhcp_send(struct netdev *dev, struct iovec *vec)
{
        struct bootp_hdr bootp;
        char dhcp_hostname[SYS_NMLN+2];
        uint8_t padding[BOOTP_MIN_LEN - sizeof(struct bootp_hdr)];
        int padding_len;
        int i = 4;
        int j;

        memset(&bootp, 0, sizeof(struct bootp_hdr));

        bootp.op        = BOOTP_REQUEST;
        bootp.htype     = dev->hwtype;
        bootp.hlen      = dev->hwlen;
        bootp.xid       = dev->bootp.xid;
        bootp.ciaddr    = INADDR_ANY;
 -      bootp.yiaddr    = dev->ip_addr;           //<<< wrong >>>
 +    bootp.yiaddr = INADDR_ANY;                // needed
 +    bootp.flags = htons(0x800);                   // needed
        bootp.giaddr    = INADDR_ANY;
        bootp.secs      = htons(time(NULL) - dev->open_time);
        memcpy(bootp.chaddr, dev->hwaddr, 16);

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1327412

Title:
  Delay during PXE Boot, IP-Config gives up

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/klibc/+bug/1327412/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to