buglwIP - A Lightweight TCP/IP stack - Bugs: bug #67098, Violation of T1/T2 Timer...

 
 

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

bug #67098: Violation of T1/T2 Timer Relationship Requirement

Submitter:  zmw <zmw12306>
Submitted:  Thu 08 May 2025 02:11:49 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:11:49 AM UTC, original submission:  

- *Location*: `dhcp_bind()` function
- *Current Code*:
```c
if ((dhcp->t1_timeout >= dhcp->t2_timeout) && (dhcp->t2_timeout > 0)) {
    dhcp->t1_timeout = 0;  // Violates RFC requirement
}
```
- *Problem*: When T1 >= T2, the code sets T1 to 0 directly

- *Fix*:
```c
if ((dhcp->t1_timeout >= dhcp->t2_timeout) && (dhcp->t2_timeout > 0)) {
   if ( dhcp->t2_timeout > 1)
         dhcp->t1_timeout = dhcp->t2_timeout - 1;  // Ensures T1 < T2
  else
         dhcp->t1_timeout = 0;
}
```

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