lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [lwip-users] DHCP and changing the MAC address


From: Tom C. Barker
Subject: RE: [lwip-users] DHCP and changing the MAC address
Date: Thu, 24 Jun 2004 16:19:10 -0700

Leon,
The second problem of sending out a discover and response only, has gone away...
Here is the debug dump and the ethereal dump of trying to change the MAC 
address.

There are 3 sets of the four-part transaction. The first two are a duplicate 
(bug)
the third is when I change from MAC xxxxxxxxxx05 to xxxxxxxxxx06. It seems I 
get 
a x.x.x.209 for both MACs (?) in this instance.

Even this may not help you so I'll be looking for another instance. Remember my 
original issue was that when I change MACs, the listening pcb was based on the 
original IP address which was zeroed in order to get another IP address. The 
transfer to the new address in the listening pcb does not take place because 
the original address was not retained in the netif, hence no basis for 
transferring
control.

Tom 

//-----------------------------------------------------------------------------

dhcp_release()

dhcp_arp_reply()

dhcp_release: RELEASED, DHCP_OFF

dhcp_release(): set request timeout 1000 msecs

dhcp_stop()

dhcp_free_reply(): free'd

dhcp_start(netif=0x110667a8) et0

dhcp_start(): starting new DHCP client

dhcp_start(): allocated dhcp
dhcp_start(): created new udp pcb

dhcp_start(): starting DHCP configuration

dhcp_discover()

dhcp_discover: making request

dhcp_discover: realloc()ing

dhcp_discover: send()ing

dhcp_discover: bind()ing

dhcp_discover: connect()ing

dhcp_discover: deleting()ing

dhcp_discover: SELECTING

dhcp_discover(): set request timeout 2000 msecs

dhcp_recv(pbuf = 0x1107db1c) from DHCP server 216.101.63.3 port 67

pbuf->len = 300

pbuf->tot_len = 300

dhcp_free_reply(): free'd

dhcp_unfold_reply(): copied 240 bytes into dhcp->msg_in[]

dhcp_unfold_reply(): copied 60 bytes to dhcp->options_in[]

searching DHCP_OPTION_MESSAGE_TYPE

option found at offset 0 in options

option byte value=2

DHCP_OFFER received in DHCP_SELECTING state

skipping option 53 in options

skipping option 1 in options

skipping option 58 in options

skipping option 59 in options

skipping option 51 in options

option found at offset 27 in options

dhcp_handle_offer(netif=0x110667a8) et0

option long value=3630513923

dhcp_handle_offer(): server 0xd8653f03

dhcp_handle_offer(): offer for 0xd8653fd1

dhcp_select(netif=0x110667a8) et0

dhcp_select: REQUESTING

dhcp_select(): set request timeout 1000 msecs

dhcp_recv(pbuf = 0x1107c8bc) from DHCP server 216.101.63.3 port 67

pbuf->len = 300

pbuf->tot_len = 300

dhcp_free_reply(): free'd

dhcp_unfold_reply(): copied 240 bytes into dhcp->msg_in[]

dhcp_unfold_reply(): copied 60 bytes to dhcp->options_in[]

searching DHCP_OPTION_MESSAGE_TYPE

option found at offset 0 in options

option byte value=5

DHCP_ACK received

skipping option 53 in options

skipping option 58 in options

skipping option 59 in options

option found at offset 15 in options

option long value=28800

skipping option 53 in options

option found at offset 3 in options

option long value=14400

skipping option 53 in options

skipping option 58 in options

option found at offset 9 in options

option long value=25200

skipping option 53 in options

skipping option 58 in options

skipping option 59 in options

skipping option 51 in options

skipping option 54 in options

option found at offset 27 in options

option long value=4294967040

skipping option 53 in options

skipping option 58 in options

skipping option 59 in options

skipping option 51 in options

skipping option 54 in options

skipping option 1 in options

option found at offset 33 in options

option long value=3630513921

skipping option 53 in options

skipping option 58 in options

skipping option 59 in options

skipping option 51 in options

skipping option 54 in options

skipping option 1 in options

skipping option 3 in options

dhcp_check(netif=0x110667a8) et

dhcp_check(): set request timeout 500 msecs

dhcp_fine_tmr(): request timeout

dhcp_timeout()

dhcp_timeout(): CHECKING, ARP request timed out

dhcp_check(netif=0x110667a8) et

dhcp_check(): set request timeout 500 msecs

dhcp_fine_tmr(): request timeout

dhcp_timeout()

dhcp_timeout(): CHECKING, ARP request timed out

dhcp_check(netif=0x110667a8) et

dhcp_check(): set request timeout 500 msecs

dhcp_fine_tmr(): request timeout

dhcp_timeout()

dhcp_timeout(): CHECKING, ARP request timed out

dhcp_bind(netif=0x110667a8) et0

dhcp_bind(): t1 renewal timer 14400 secs

dhcp_bind(): set request timeout 14400000 msecs

dhcp_bind(): t2 rebind timer 25200 secs

dhcp_bind(): set request timeout 25200000 msecs

dhcp_bind(): IP: 0xd8653fd1

dhcp_bind(): SN: 0xffffff00

dhcp_bind(): GW: 0xd8653f01

dhcp_release()

dhcp_release: RELEASED, DHCP_OFF

dhcp_release(): set request timeout 1000 msecs

dhcp_stop()

dhcp_free_reply(): free'd

dhcp_start(netif=0x110667a8) et0

dhcp_start(): starting new DHCP client

dhcp_start(): allocated dhcp
dhcp_start(): created new udp pcb

dhcp_start(): starting DHCP configuration

dhcp_discover()

dhcp_discover: making request

dhcp_discover: realloc()ing

dhcp_discover: send()ing

dhcp_discover: bind()ing

dhcp_discover: connect()ing

dhcp_discover: deleting()ing

dhcp_discover: SELECTING

dhcp_discover(): set request timeout 2000 msecs

dhcp_recv(pbuf = 0x1107855c) from DHCP server 216.101.63.3 port 67

pbuf->len = 300

pbuf->tot_len = 300

dhcp_free_reply(): free'd

dhcp_unfold_reply(): copied 240 bytes into dhcp->msg_in[]

dhcp_unfold_reply(): copied 60 bytes to dhcp->options_in[]

searching DHCP_OPTION_MESSAGE_TYPE

option found at offset 0 in options

option byte value=2

DHCP_OFFER received in DHCP_SELECTING state

skipping option 53 in options

skipping option 1 in options

skipping option 58 in options

skipping option 59 in options

skipping option 51 in options

option found at offset 27 in options

dhcp_handle_offer(netif=0x110667a8) et0

option long value=3630513923

dhcp_handle_offer(): server 0xd8653f03

dhcp_handle_offer(): offer for 0xd8653fd1

dhcp_select(netif=0x110667a8) et0

dhcp_select: REQUESTING

dhcp_select(): set request timeout 1000 msecs

dhcp_recv(pbuf = 0x1107a3fc) from DHCP server 216.101.63.3 port 67

pbuf->len = 300

pbuf->tot_len = 300

dhcp_free_reply(): free'd

dhcp_unfold_reply(): copied 240 bytes into dhcp->msg_in[]

dhcp_unfold_reply(): copied 60 bytes to dhcp->options_in[]

searching DHCP_OPTION_MESSAGE_TYPE

option found at offset 0 in options

option byte value=5

DHCP_ACK received

skipping option 53 in options

skipping option 58 in options

skipping option 59 in options

option found at offset 15 in options

option long value=28800

skipping option 53 in options

option found at offset 3 in options

option long value=14400

skipping option 53 in options

skipping option 58 in options

option found at offset 9 in options

option long value=25200

skipping option 53 in options

skipping option 58 in options

skipping option 59 in options

skipping option 51 in options

skipping option 54 in options

option found at offset 27 in options

option long value=4294967040

skipping option 53 in options

skipping option 58 in options

skipping option 59 in options

skipping option 51 in options

skipping option 54 in options

skipping option 1 in options

option found at offset 33 in options

option long value=3630513921

skipping option 53 in options

skipping option 58 in options

skipping option 59 in options

skipping option 51 in options

skipping option 54 in options

skipping option 1 in options

skipping option 3 in options

dhcp_check(netif=0x110667a8) et

dhcp_check(): set request timeout 500 msecs

dhcp_fine_tmr(): request timeout

dhcp_timeout()

dhcp_timeout(): CHECKING, ARP request timed out

dhcp_check(netif=0x110667a8) et

dhcp_check(): set request timeout 500 msecs

dhcp_fine_tmr(): request timeout

dhcp_timeout()

dhcp_timeout(): CHECKING, ARP request timed out

dhcp_check(netif=0x110667a8) et

dhcp_check(): set request timeout 500 msecs

dhcp_fine_tmr(): request timeout

dhcp_timeout()

dhcp_timeout(): CHECKING, ARP request timed out

dhcp_bind(netif=0x110667a8) et0

dhcp_bind(): t1 renewal timer 14400 secs

dhcp_bind(): set request timeout 14400000 msecs

dhcp_bind(): t2 rebind timer 25200 secs

dhcp_bind(): set request timeout 25200000 msecs

dhcp_bind(): IP: 0xd8653fd1

dhcp_bind(): SN: 0xffffff00

dhcp_bind(): GW: 0xd8653f01

dhcp_release()

dhcp_release: RELEASED, DHCP_OFF

dhcp_release(): set request timeout 1000 msecs

dhcp_stop()

dhcp_free_reply(): free'd

dhcp_start(netif=0x110667a8) et0

dhcp_start(): starting new DHCP client

dhcp_start(): allocated dhcp
dhcp_start(): created new udp pcb

dhcp_start(): starting DHCP configuration

dhcp_discover()

dhcp_discover: making request

dhcp_discover: realloc()ing

dhcp_discover: send()ing

dhcp_discover: bind()ing

dhcp_discover: connect()ing

dhcp_discover: deleting()ing

dhcp_discover: SELECTING

dhcp_discover(): set request timeout 2000 msecs

dhcp_recv(pbuf = 0x11079ddc) from DHCP server 216.101.63.3 port 67

pbuf->len = 300

pbuf->tot_len = 300

dhcp_free_reply(): free'd

dhcp_unfold_reply(): copied 240 bytes into dhcp->msg_in[]

dhcp_unfold_reply(): copied 60 bytes to dhcp->options_in[]

searching DHCP_OPTION_MESSAGE_TYPE

option found at offset 0 in options

option byte value=2

DHCP_OFFER received in DHCP_SELECTING state

skipping option 53 in options

skipping option 1 in options

skipping option 58 in options

skipping option 59 in options

skipping option 51 in options

option found at offset 27 in options

dhcp_handle_offer(netif=0x110667a8) et0

option long value=3630513923

dhcp_handle_offer(): server 0xd8653f03

dhcp_handle_offer(): offer for 0xd8653fd1

dhcp_select(netif=0x110667a8) et0

dhcp_select: REQUESTING

dhcp_select(): set request timeout 1000 msecs

dhcp_recv(pbuf = 0x1107d4fc) from DHCP server 216.101.63.3 port 67

pbuf->len = 300

pbuf->tot_len = 300

dhcp_free_reply(): free'd

dhcp_unfold_reply(): copied 240 bytes into dhcp->msg_in[]

dhcp_unfold_reply(): copied 60 bytes to dhcp->options_in[]

searching DHCP_OPTION_MESSAGE_TYPE

option found at offset 0 in options

option byte value=5

DHCP_ACK received

skipping option 53 in options

skipping option 58 in options

skipping option 59 in options

option found at offset 15 in options

option long value=28800

skipping option 53 in options

option found at offset 3 in options

option long value=14400

skipping option 53 in options

skipping option 58 in options

option found at offset 9 in options

option long value=25200

skipping option 53 in options

skipping option 58 in options

skipping option 59 in options

skipping option 51 in options

skipping option 54 in options

option found at offset 27 in options

option long value=4294967040

skipping option 53 in options

skipping option 58 in options

skipping option 59 in options

skipping option 51 in options

skipping option 54 in options

skipping option 1 in options

option found at offset 33 in options

option long value=3630513921

skipping option 53 in options

skipping option 58 in options

skipping option 59 in options

skipping option 51 in options

skipping option 54 in options

skipping option 1 in options

skipping option 3 in options

dhcp_check(netif=0x110667a8) et

dhcp_check(): set request timeout 500 msecs

dhcp_fine_tmr(): request timeout

dhcp_timeout()

dhcp_timeout(): CHECKING, ARP request timed out

dhcp_check(netif=0x110667a8) et

dhcp_check(): set request timeout 500 msecs

dhcp_fine_tmr(): request timeout

dhcp_timeout()

dhcp_timeout(): CHECKING, ARP request timed out

dhcp_check(netif=0x110667a8) et

dhcp_check(): set request timeout 500 msecs

dhcp_fine_tmr(): request timeout

dhcp_timeout()

dhcp_timeout(): CHECKING, ARP request timed out

dhcp_bind(netif=0x110667a8) et0

dhcp_bind(): t1 renewal timer 14400 secs

dhcp_bind(): set request timeout 14400000 msecs

dhcp_bind(): t2 rebind timer 25200 secs

dhcp_bind(): set request timeout 25200000 msecs

dhcp_bind(): IP: 0xd8653fd1

dhcp_bind(): SN: 0xffffff00

dhcp_bind(): GW: 0xd8653f01

dhcp_coarse_tmr()


//-----------------------------------------------------------------------------


No.     Time        Source                Destination           Protocol Info
     62 23.608930   0.0.0.0               255.255.255.255       DHCP     DHCP 
Discover - Transaction ID 0xabcd0023

Frame 62 (350 bytes on wire, 350 bytes captured)
Ethernet II, Src: 00:08:4f:ff:ff:05, Dst: ff:ff:ff:ff:ff:ff
Internet Protocol, Src Addr: 0.0.0.0 (0.0.0.0), Dst Addr: 255.255.255.255 
(255.255.255.255)
User Datagram Protocol, Src Port: bootpc (68), Dst Port: bootps (67)
Bootstrap Protocol
    Message type: Boot Request (1)
    Hardware type: Ethernet
    Hardware address length: 6
    Hops: 0
    Transaction ID: 0xabcd0023
    Seconds elapsed: 0
    Bootp flags: 0x0000 (Unicast)
    Client IP address: 0.0.0.0 (0.0.0.0)
    Your (client) IP address: 0.0.0.0 (0.0.0.0)
    Next server IP address: 0.0.0.0 (0.0.0.0)
    Relay agent IP address: 0.0.0.0 (0.0.0.0)
    Client hardware address: 00:08:4f:ff:ff:05
    Server host name not given
    Boot file name not given
    Magic cookie: (OK)
    Option 53: DHCP Message Type = DHCP Discover
    Option 57: Maximum DHCP Message Size = 576
    Option 55: Parameter Request List
    End Option
    Padding

No.     Time        Source                Destination           Protocol Info
     63 23.656180   216.101.63.3          255.255.255.255       DHCP     DHCP 
Offer    - Transaction ID 0xabcd0023

Frame 63 (342 bytes on wire, 342 bytes captured)
Ethernet II, Src: 00:d0:b7:e4:c5:94, Dst: ff:ff:ff:ff:ff:ff
Internet Protocol, Src Addr: 216.101.63.3 (216.101.63.3), Dst Addr: 
255.255.255.255 (255.255.255.255)
User Datagram Protocol, Src Port: bootps (67), Dst Port: bootpc (68)
Bootstrap Protocol
    Message type: Boot Reply (2)
    Hardware type: Ethernet
    Hardware address length: 6
    Hops: 0
    Transaction ID: 0xabcd0023
    Seconds elapsed: 0
    Bootp flags: 0x0000 (Unicast)
    Client IP address: 0.0.0.0 (0.0.0.0)
    Your (client) IP address: 216.101.63.209 (216.101.63.209)
    Next server IP address: 0.0.0.0 (0.0.0.0)
    Relay agent IP address: 0.0.0.0 (0.0.0.0)
    Client hardware address: 00:08:4f:ff:ff:05
    Server host name not given
    Boot file name not given
    Magic cookie: (OK)
    Option 53: DHCP Message Type = DHCP Offer
    Option 1: Subnet Mask = 255.255.255.0
    Option 58: Renewal Time Value = 4 hours
    Option 59: Rebinding Time Value = 7 hours
    Option 51: IP Address Lease Time = 8 hours
    Option 54: Server Identifier = 216.101.63.3
    Option 3: Router = 216.101.63.1
    End Option
    Padding

No.     Time        Source                Destination           Protocol Info
     64 23.771613   0.0.0.0               255.255.255.255       DHCP     DHCP 
Request  - Transaction ID 0xabcd0024

Frame 64 (350 bytes on wire, 350 bytes captured)
Ethernet II, Src: 00:08:4f:ff:ff:05, Dst: ff:ff:ff:ff:ff:ff
Internet Protocol, Src Addr: 0.0.0.0 (0.0.0.0), Dst Addr: 255.255.255.255 
(255.255.255.255)
User Datagram Protocol, Src Port: bootpc (68), Dst Port: bootps (67)
Bootstrap Protocol
    Message type: Boot Request (1)
    Hardware type: Ethernet
    Hardware address length: 6
    Hops: 0
    Transaction ID: 0xabcd0024
    Seconds elapsed: 0
    Bootp flags: 0x0000 (Unicast)
    Client IP address: 0.0.0.0 (0.0.0.0)
    Your (client) IP address: 0.0.0.0 (0.0.0.0)
    Next server IP address: 0.0.0.0 (0.0.0.0)
    Relay agent IP address: 0.0.0.0 (0.0.0.0)
    Client hardware address: 00:08:4f:ff:ff:05
    Server host name not given
    Boot file name not given
    Magic cookie: (OK)
    Option 53: DHCP Message Type = DHCP Request
    Option 57: Maximum DHCP Message Size = 576
    Option 50: Requested IP Address = 216.101.63.209
    Option 54: Server Identifier = 216.101.63.3
    Option 55: Parameter Request List
    End Option
    Padding

No.     Time        Source                Destination           Protocol Info
     66 23.806127   216.101.63.3          255.255.255.255       DHCP     DHCP 
ACK      - Transaction ID 0xabcd0024

Frame 66 (342 bytes on wire, 342 bytes captured)
Ethernet II, Src: 00:d0:b7:e4:c5:94, Dst: ff:ff:ff:ff:ff:ff
Internet Protocol, Src Addr: 216.101.63.3 (216.101.63.3), Dst Addr: 
255.255.255.255 (255.255.255.255)
User Datagram Protocol, Src Port: bootps (67), Dst Port: bootpc (68)
Bootstrap Protocol
    Message type: Boot Reply (2)
    Hardware type: Ethernet
    Hardware address length: 6
    Hops: 0
    Transaction ID: 0xabcd0024
    Seconds elapsed: 0
    Bootp flags: 0x0000 (Unicast)
    Client IP address: 0.0.0.0 (0.0.0.0)
    Your (client) IP address: 216.101.63.209 (216.101.63.209)
    Next server IP address: 0.0.0.0 (0.0.0.0)
    Relay agent IP address: 0.0.0.0 (0.0.0.0)
    Client hardware address: 00:08:4f:ff:ff:05
    Server host name not given
    Boot file name not given
    Magic cookie: (OK)
    Option 53: DHCP Message Type = DHCP ACK
    Option 58: Renewal Time Value = 4 hours
    Option 59: Rebinding Time Value = 7 hours
    Option 51: IP Address Lease Time = 8 hours
    Option 54: Server Identifier = 216.101.63.3
    Option 1: Subnet Mask = 255.255.255.0
    Option 3: Router = 216.101.63.1
    End Option
    Padding

No.     Time        Source                Destination           Protocol Info
     73 25.509543   0.0.0.0               255.255.255.255       DHCP     DHCP 
Discover - Transaction ID 0xabcd0026

Frame 73 (350 bytes on wire, 350 bytes captured)
Ethernet II, Src: 00:08:4f:ff:ff:05, Dst: ff:ff:ff:ff:ff:ff
Internet Protocol, Src Addr: 0.0.0.0 (0.0.0.0), Dst Addr: 255.255.255.255 
(255.255.255.255)
User Datagram Protocol, Src Port: bootpc (68), Dst Port: bootps (67)
Bootstrap Protocol
    Message type: Boot Request (1)
    Hardware type: Ethernet
    Hardware address length: 6
    Hops: 0
    Transaction ID: 0xabcd0026
    Seconds elapsed: 0
    Bootp flags: 0x0000 (Unicast)
    Client IP address: 0.0.0.0 (0.0.0.0)
    Your (client) IP address: 0.0.0.0 (0.0.0.0)
    Next server IP address: 0.0.0.0 (0.0.0.0)
    Relay agent IP address: 0.0.0.0 (0.0.0.0)
    Client hardware address: 00:08:4f:ff:ff:05
    Server host name not given
    Boot file name not given
    Magic cookie: (OK)
    Option 53: DHCP Message Type = DHCP Discover
    Option 57: Maximum DHCP Message Size = 576
    Option 55: Parameter Request List
    End Option
    Padding

No.     Time        Source                Destination           Protocol Info
     74 25.559247   216.101.63.3          255.255.255.255       DHCP     DHCP 
Offer    - Transaction ID 0xabcd0026

Frame 74 (342 bytes on wire, 342 bytes captured)
Ethernet II, Src: 00:d0:b7:e4:c5:94, Dst: ff:ff:ff:ff:ff:ff
Internet Protocol, Src Addr: 216.101.63.3 (216.101.63.3), Dst Addr: 
255.255.255.255 (255.255.255.255)
User Datagram Protocol, Src Port: bootps (67), Dst Port: bootpc (68)
Bootstrap Protocol
    Message type: Boot Reply (2)
    Hardware type: Ethernet
    Hardware address length: 6
    Hops: 0
    Transaction ID: 0xabcd0026
    Seconds elapsed: 0
    Bootp flags: 0x0000 (Unicast)
    Client IP address: 0.0.0.0 (0.0.0.0)
    Your (client) IP address: 216.101.63.209 (216.101.63.209)
    Next server IP address: 0.0.0.0 (0.0.0.0)
    Relay agent IP address: 0.0.0.0 (0.0.0.0)
    Client hardware address: 00:08:4f:ff:ff:05
    Server host name not given
    Boot file name not given
    Magic cookie: (OK)
    Option 53: DHCP Message Type = DHCP Offer
    Option 1: Subnet Mask = 255.255.255.0
    Option 58: Renewal Time Value = 4 hours
    Option 59: Rebinding Time Value = 7 hours
    Option 51: IP Address Lease Time = 8 hours
    Option 54: Server Identifier = 216.101.63.3
    Option 3: Router = 216.101.63.1
    End Option
    Padding

No.     Time        Source                Destination           Protocol Info
     75 25.671743   0.0.0.0               255.255.255.255       DHCP     DHCP 
Request  - Transaction ID 0xabcd0027

Frame 75 (350 bytes on wire, 350 bytes captured)
Ethernet II, Src: 00:08:4f:ff:ff:05, Dst: ff:ff:ff:ff:ff:ff
Internet Protocol, Src Addr: 0.0.0.0 (0.0.0.0), Dst Addr: 255.255.255.255 
(255.255.255.255)
User Datagram Protocol, Src Port: bootpc (68), Dst Port: bootps (67)
Bootstrap Protocol
    Message type: Boot Request (1)
    Hardware type: Ethernet
    Hardware address length: 6
    Hops: 0
    Transaction ID: 0xabcd0027
    Seconds elapsed: 0
    Bootp flags: 0x0000 (Unicast)
    Client IP address: 0.0.0.0 (0.0.0.0)
    Your (client) IP address: 0.0.0.0 (0.0.0.0)
    Next server IP address: 0.0.0.0 (0.0.0.0)
    Relay agent IP address: 0.0.0.0 (0.0.0.0)
    Client hardware address: 00:08:4f:ff:ff:05
    Server host name not given
    Boot file name not given
    Magic cookie: (OK)
    Option 53: DHCP Message Type = DHCP Request
    Option 57: Maximum DHCP Message Size = 576
    Option 50: Requested IP Address = 216.101.63.209
    Option 54: Server Identifier = 216.101.63.3
    Option 55: Parameter Request List
    End Option
    Padding

No.     Time        Source                Destination           Protocol Info
     76 25.708933   216.101.63.3          255.255.255.255       DHCP     DHCP 
ACK      - Transaction ID 0xabcd0027

Frame 76 (342 bytes on wire, 342 bytes captured)
Ethernet II, Src: 00:d0:b7:e4:c5:94, Dst: ff:ff:ff:ff:ff:ff
Internet Protocol, Src Addr: 216.101.63.3 (216.101.63.3), Dst Addr: 
255.255.255.255 (255.255.255.255)
User Datagram Protocol, Src Port: bootps (67), Dst Port: bootpc (68)
Bootstrap Protocol
    Message type: Boot Reply (2)
    Hardware type: Ethernet
    Hardware address length: 6
    Hops: 0
    Transaction ID: 0xabcd0027
    Seconds elapsed: 0
    Bootp flags: 0x0000 (Unicast)
    Client IP address: 0.0.0.0 (0.0.0.0)
    Your (client) IP address: 216.101.63.209 (216.101.63.209)
    Next server IP address: 0.0.0.0 (0.0.0.0)
    Relay agent IP address: 0.0.0.0 (0.0.0.0)
    Client hardware address: 00:08:4f:ff:ff:05
    Server host name not given
    Boot file name not given
    Magic cookie: (OK)
    Option 53: DHCP Message Type = DHCP ACK
    Option 58: Renewal Time Value = 4 hours
    Option 59: Rebinding Time Value = 7 hours
    Option 51: IP Address Lease Time = 8 hours
    Option 54: Server Identifier = 216.101.63.3
    Option 1: Subnet Mask = 255.255.255.0
    Option 3: Router = 216.101.63.1
    End Option
    Padding

No.     Time        Source                Destination           Protocol Info
    105 37.873964   0.0.0.0               255.255.255.255       DHCP     DHCP 
Discover - Transaction ID 0xabcd0029

Frame 105 (350 bytes on wire, 350 bytes captured)
Ethernet II, Src: 00:08:4f:ff:ff:06, Dst: ff:ff:ff:ff:ff:ff
Internet Protocol, Src Addr: 0.0.0.0 (0.0.0.0), Dst Addr: 255.255.255.255 
(255.255.255.255)
User Datagram Protocol, Src Port: bootpc (68), Dst Port: bootps (67)
Bootstrap Protocol
    Message type: Boot Request (1)
    Hardware type: Ethernet
    Hardware address length: 6
    Hops: 0
    Transaction ID: 0xabcd0029
    Seconds elapsed: 0
    Bootp flags: 0x0000 (Unicast)
    Client IP address: 0.0.0.0 (0.0.0.0)
    Your (client) IP address: 0.0.0.0 (0.0.0.0)
    Next server IP address: 0.0.0.0 (0.0.0.0)
    Relay agent IP address: 0.0.0.0 (0.0.0.0)
    Client hardware address: 00:08:4f:ff:ff:06
    Server host name not given
    Boot file name not given
    Magic cookie: (OK)
    Option 53: DHCP Message Type = DHCP Discover
    Option 57: Maximum DHCP Message Size = 576
    Option 55: Parameter Request List
    End Option
    Padding

No.     Time        Source                Destination           Protocol Info
    106 37.927489   216.101.63.3          255.255.255.255       DHCP     DHCP 
Offer    - Transaction ID 0xabcd0029

Frame 106 (342 bytes on wire, 342 bytes captured)
Ethernet II, Src: 00:d0:b7:e4:c5:94, Dst: ff:ff:ff:ff:ff:ff
Internet Protocol, Src Addr: 216.101.63.3 (216.101.63.3), Dst Addr: 
255.255.255.255 (255.255.255.255)
User Datagram Protocol, Src Port: bootps (67), Dst Port: bootpc (68)
Bootstrap Protocol
    Message type: Boot Reply (2)
    Hardware type: Ethernet
    Hardware address length: 6
    Hops: 0
    Transaction ID: 0xabcd0029
    Seconds elapsed: 0
    Bootp flags: 0x0000 (Unicast)
    Client IP address: 0.0.0.0 (0.0.0.0)
    Your (client) IP address: 216.101.63.209 (216.101.63.209)
    Next server IP address: 0.0.0.0 (0.0.0.0)
    Relay agent IP address: 0.0.0.0 (0.0.0.0)
    Client hardware address: 00:08:4f:ff:ff:06
    Server host name not given
    Boot file name not given
    Magic cookie: (OK)
    Option 53: DHCP Message Type = DHCP Offer
    Option 1: Subnet Mask = 255.255.255.0
    Option 58: Renewal Time Value = 4 hours
    Option 59: Rebinding Time Value = 7 hours
    Option 51: IP Address Lease Time = 8 hours
    Option 54: Server Identifier = 216.101.63.3
    Option 3: Router = 216.101.63.1
    End Option
    Padding

No.     Time        Source                Destination           Protocol Info
    107 38.036399   0.0.0.0               255.255.255.255       DHCP     DHCP 
Request  - Transaction ID 0xabcd002a

Frame 107 (350 bytes on wire, 350 bytes captured)
Ethernet II, Src: 00:08:4f:ff:ff:06, Dst: ff:ff:ff:ff:ff:ff
Internet Protocol, Src Addr: 0.0.0.0 (0.0.0.0), Dst Addr: 255.255.255.255 
(255.255.255.255)
User Datagram Protocol, Src Port: bootpc (68), Dst Port: bootps (67)
Bootstrap Protocol
    Message type: Boot Request (1)
    Hardware type: Ethernet
    Hardware address length: 6
    Hops: 0
    Transaction ID: 0xabcd002a
    Seconds elapsed: 0
    Bootp flags: 0x0000 (Unicast)
    Client IP address: 0.0.0.0 (0.0.0.0)
    Your (client) IP address: 0.0.0.0 (0.0.0.0)
    Next server IP address: 0.0.0.0 (0.0.0.0)
    Relay agent IP address: 0.0.0.0 (0.0.0.0)
    Client hardware address: 00:08:4f:ff:ff:06
    Server host name not given
    Boot file name not given
    Magic cookie: (OK)
    Option 53: DHCP Message Type = DHCP Request
    Option 57: Maximum DHCP Message Size = 576
    Option 50: Requested IP Address = 216.101.63.209
    Option 54: Server Identifier = 216.101.63.3
    Option 55: Parameter Request List
    End Option
    Padding

No.     Time        Source                Destination           Protocol Info
    108 38.078148   216.101.63.3          255.255.255.255       DHCP     DHCP 
ACK      - Transaction ID 0xabcd002a

Frame 108 (342 bytes on wire, 342 bytes captured)
Ethernet II, Src: 00:d0:b7:e4:c5:94, Dst: ff:ff:ff:ff:ff:ff
Internet Protocol, Src Addr: 216.101.63.3 (216.101.63.3), Dst Addr: 
255.255.255.255 (255.255.255.255)
User Datagram Protocol, Src Port: bootps (67), Dst Port: bootpc (68)
Bootstrap Protocol
    Message type: Boot Reply (2)
    Hardware type: Ethernet
    Hardware address length: 6
    Hops: 0
    Transaction ID: 0xabcd002a
    Seconds elapsed: 0
    Bootp flags: 0x0000 (Unicast)
    Client IP address: 0.0.0.0 (0.0.0.0)
    Your (client) IP address: 216.101.63.209 (216.101.63.209)
    Next server IP address: 0.0.0.0 (0.0.0.0)
    Relay agent IP address: 0.0.0.0 (0.0.0.0)
    Client hardware address: 00:08:4f:ff:ff:06
    Server host name not given
    Boot file name not given
    Magic cookie: (OK)
    Option 53: DHCP Message Type = DHCP ACK
    Option 58: Renewal Time Value = 4 hours
    Option 59: Rebinding Time Value = 7 hours
    Option 51: IP Address Lease Time = 8 hours
    Option 54: Server Identifier = 216.101.63.3
    Option 1: Subnet Mask = 255.255.255.0
    Option 3: Router = 216.101.63.1
    End Option
    Padding






-----Original Message-----
From: address@hidden
[mailto:address@hidden Behalf
Of Leon Woestenberg
Sent: Thursday, June 24, 2004 3:12 PM
To: Mailing list for lwIP users
Subject: Re: [lwip-users] DHCP and changing the MAC address


Hello Tom,

Tom C. Barker wrote:

> Thanks Leon.
> I did not use dhcp_release because of its static keyword and 
> that it was not listed in the .h file. But, fixing these two,
> I ran it and it got even worse. I use ethereal constantly, so
 >
Hmm, this part was very much less tested than bringing up the interface
using DHCP.

> here's the dump of what happens on stop, release, start with
> no other intervention: the module just loops on the coarse timer
> sends a discover and request every 10 seconds. It does not wait 
> for a response from the discover.
>
Definitely a bug in dhcp.c then.

I have stripped the two messages down to the important fields:

>     Destination: ff:ff:ff:ff:ff:ff (Broadcast)
>     Source: 00:08:4f:ff:ff:08 (Qualstar_ff:ff:08)
>     Source: 16.101.63.101 (16.101.63.101)
>     Destination: 255.255.255.255 (255.255.255.255)
>     Client IP address: 16.101.63.101 (16.101.63.101)
>     Your (client) IP address: 0.0.0.0 (0.0.0.0)
>     Next server IP address: 0.0.0.0 (0.0.0.0)
>     Relay agent IP address: 0.0.0.0 (0.0.0.0)
>     Client hardware address: 00:08:4f:ff:ff:08
 >     Option 53: DHCP Message Type = DHCP Discover

>     Destination: ff:ff:ff:ff:ff:ff (Broadcast)
>     Source: 00:08:4f:ff:ff:08 (Qualstar_ff:ff:08)
>     Type: IP (0x0800)
>     Client IP address: 16.101.63.101 (16.101.63.101)
>     Your (client) IP address: 0.0.0.0 (0.0.0.0)
>     Next server IP address: 0.0.0.0 (0.0.0.0)
>     Relay agent IP address: 0.0.0.0 (0.0.0.0)
>     Client hardware address: 00:08:4f:ff:ff:08
>     Server host name not given
>     Boot file name not given
>     Magic cookie: (OK)
>     Option 53: DHCP Message Type = DHCP Request
>     Option 57: Maximum DHCP Message Size = 576
>     Option 50: Requested IP Address = 16.101.63.200
>     Option 54: Server Identifier = 16.101.63.3
>
The last two lines suggest that the lwIP host *did* receive
a OFFER response, from DHCP server 16.101.63.3, with an OFFER
for address 16.101.63.200.

Alternatively, the dhcp.c is broken and is acting on old state
information which is not cleared somehow.

Checking dhcp.c dhcp_start() clearly shows a memset() that should
clear new state fields, and _stop() free()s the old state and
removes the referencing pointer in netif. So, this seems OK.

There are no global variables (other than the transaction id) so
I am clueless what can cause this behaviour. Could you enable
lwIP in-code DHCP debugging?

Leon.



_______________________________________________
lwip-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/lwip-users




reply via email to

[Prev in Thread] Current Thread [Next in Thread]