[klibc] ipconfig bug with multiple interfaces

maximilian attems max at stro.at
Tue Mar 25 08:48:18 PDT 2008


On Fri, 22 Feb 2008, Michal Sojka wrote:
> --- a/usr/kinit/ipconfig/main.c
> +++ b/usr/kinit/ipconfig/main.c
> @@ -534,6 +534,7 @@ static int parse_device(struct netdev *dev, const char 
> *ip)

your mail client botched your patch, anyway fixed it up by hand
and added to my current patch queue for hpa to commit.

please next time check with git am if your patches are applyable ;)

> The ipconfig output with enabled debugging looks like this:

your debugging is quite verbose, what was the command line out
of curiosity?
 
> IP-Config: eth0:  setting full-duplex.
> parse_device: "::::::"
> Trying to bring up eth1
> IP-Config: parse_device: "eth1"
> IP-Config: eth1 hardware address 00:0c:f1:77:ec:46 mtu 1500 DHCP RARP
> Trying to bring up eth0
> IP-Config: parse_device: "eth0"
> IP-Config: eth0 hardware address 00:50:04:1f:d9:40 mtu 1500 DHCP RARP
> eth0: state = 2
> timeout
> -> dhcp discover xid 276c7476 secs 0 
>    udp src 68 dst 67
>    ip src 0.0.0usb 1-1: new full speed USB device using uhci_hcd and address 3
> .0 dst 255.255.255.255 
>    bytes 299
> eth1: state = 2
> timeout
> usb 1-1: configuration #1 chosen from 1 choice
> Delta: 1051 ms
> Delta: 99 ms
> eth0: state = 2
> timeout
> -> dhcp discover xid 276c7476 secs 1 
>    udp src 68 dst 67
>    ip src 0.0.0.0 dst 255.255.255.255 
>    bytes 299
> eth1: state = 2
> timeout
> -> dhcp discover xid 71040389 secs 1 
>    udp src 68 dst 67
>    ip src 0.0.0.0 dst 255.255.255.255 
>    bytes 299
> <- bytes 362 
>    ip src 147.32.86.1 dst 147.32.86.65 
>    udp src 67 dst 68 
>    dhcp xid 71040389 
>    dhcp offer
> -> dhcp request xid 71040389 secs 1 
>    udp src 68 dst 67
>    ip src 0.0.0.0 dst 255.255.255.255 
>    bytes 311

snowy greetings

-- 
maks



More information about the klibc mailing list