Hi Dimax,
It seem the DHCP server respond with "DHCP_NAK". You can use wireshark
to analyze packet.




Regards,
Bernard Xiong


2015-05-19 14:04 GMT+08:00 Dimax <[email protected]>:

> Hi,
> I faced a problem with DHCP client in lwip 1.4.1 with one specific
> router (not sure what exactly it's type is as it is installed at
> customer's house).
> Same router works fine with Windows PC, i.e. PC get's IP from router
> and connects to the internet.
>
> Below is the DHCP module trace. I wonder if this is one of:
> - known issue in 1.4.1 fixed in latest
> - issue with router not related to lwip
> - unknown issue (bug)
>
> Trace:
> dhcp_start(netif=200100A4) et0
> dhcp_start(): starting new DHCP client
> dhcp_start(): starting DHCP configuration
> dhcp_discover()
> transaction id xid(4d9ba518)
> dhcp_discover: making request
> dhcp_discover: realloc()ing
> dhcp_discover: sendto(DISCOVER, IP_ADDR_BROADCAST, DHCP_SERVER_PORT)
> dhcp_discover: deleting()ing
> dhcp_discover: SELECTING
> dhcp_discover(): set request timeout 2000 msecs
> dhcp_discover()
> transaction id xid(958bf589)
> dhcp_discover: making request
> dhcp_discover: realloc()ing
> dhcp_discover: sendto(DISCOVER, IP_ADDR_BROADCAST, DHCP_SERVER_PORT)
> dhcp_discover: deleting()ing
> dhcp_discover: SELECTING
> dhcp_discover(): set request timeout 2000 msecs
> dhcp_recv(pbuf = 2000B51C) from DHCP server 192.168.1.1 port 67
> pbuf->len = 300
> pbuf->tot_len = 300
> transaction id mismatch reply_msg->xid(4d9ba518)!=dhcp->xid(958bf589)
> dhcp_recv(pbuf = 2000B51C) from DHCP server 192.168.1.1 port 67
> pbuf->len = 300
> pbuf->tot_len = 300
> skipping option 2 in options
> skipping option 23 in options
> searching DHCP_OPTION_MESSAGE_TYPE
> DHCP_OFFER received in DHCP_SELECTING state
> dhcp_handle_offer(netif=200100A4) et0
> dhcp_handle_offer(): server 0x0101a8c0
> dhcp_handle_offer(): offer for 0x1a01a8c0
> dhcp_select(netif=200100A4) et0
> transaction id xid(4ed75815)
> dhcp_select: REQUESTING
> dhcp_select(): set request timeout 2000 msecs
> dhcp_recv(pbuf = 2000B51C) from DHCP server 192.168.1.1 port 67
> pbuf->len = 300
> pbuf->tot_len = 300
> searching DHCP_OPTION_MESSAGE_TYPE
> DHCP_NAK received
> dhcp_handle_nak(netif=200100A4) et0
> dhcp_discover()
> transaction id xid(454b179b)
> ...
> and so on...
>
> Thanks.
>
> _______________________________________________
> lwip-users mailing list
> [email protected]
> https://lists.nongnu.org/mailman/listinfo/lwip-users
>
_______________________________________________
lwip-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to