buglwIP - A Lightweight TCP/IP stack - Bugs: bug #52704, DHCP and bad OFFER

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #52704: DHCP and bad OFFER

Submitted by:  Dirk Ziegelmeier <dziegel>
Submitted on:  Wed 20 Dec 2017 09:08:44 AM UTC  
 
Category: DHCPSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: OpenPlanned Release: None
lwIP version: 2.0.3

Wed 20 Dec 2017 09:08:44 AM UTC, original submission:

Hello,

DHCP implementation seems to have minor bug. If DHCP server sends OFFER without Server Identifier-field, LwIP stops sending DISCOVER messages (one fieldbus conformance tester does this).

I didn't check RFC what actually should be done in this case, but I think that it should at least continue sending DISCOVERY messages.

In code before dhcp.c: dhcp_handle_offer() is called, DHCP timer is stopped (dhcp->request_timeout = 0;), then
dhcp_handle_offer() just prints error if it rejects the OFFER.

We are still using 1.4.1 but master seems to have identical code for dhcp_handle_offer().

br,
Esa Hill

Dirk Ziegelmeier <dziegel>
Project Member

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by dziegel (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup1