buglwIP - A Lightweight TCP/IP stack - Bugs: bug #67097, Incorrect DHCP message type used...

 
 

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

bug #67097: Incorrect DHCP message type used in REBINDING state hook

Submitter:  zmw <zmw12306>
Submitted:  Thu 08 May 2025 02:00:15 AM UTC
   
 
Category:  DHCP Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Planned Release:  None
lwIP version:  git head

Thu 08 May 2025 02:00:15 AM UTC, original submission:  

In the `dhcp_rebind()` function, there's a parameter mismatch when calling the hook for appending options. The code creates a DHCP REQUEST message but incorrectly passes DHCP_DISCOVER as the message type parameter to the hook:

```c
// When creating the message:
p_out = dhcp_create_msg(netif, dhcp, DHCP_REQUEST, &options_out_len);

// But when calling the hook:
LWIP_HOOK_DHCP_APPEND_OPTIONS(netif, dhcp, DHCP_STATE_REBINDING, msg_out, DHCP_DISCOVER, &options_out_len);
```

This inconsistency could cause problems for applications that use this hook and expect the message type parameter to match the actual message being constructed.

zmw <zmw12306>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by zmw12306 (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.15-e6e5.
    Corresponding source code