Opened 4 years ago

Last modified 4 years ago

#4038 new enhancement

Allow for leases with very long lifetimes

Reported by: sar Owned by:
Priority: medium Milestone: Outstanding Tasks
Component: dhcp Version: git
Keywords: Cc:
CVSS Scoring: Parent Tickets:
Sensitive: no Defect Severity: N/A
Sub-Project: DHCP Feature Depending on Ticket:
Estimated Difficulty: 0 Add Hours to Ticket: 0
Total Hours: 0 Internal?: no

Description (last modified by sar)

Kea should be able to support leases with long life times. There are several issues and potential workarounds
1) The biggest issue is probably if the time value gets treated as a 32 bit signed integer somewhere either in the code or when being written to or read from storage. When using an epoch of 1970 this will mean the values wrap in 2038 which for longer leases could be a problem.
2) The best solution would be to try and ensure that any lease time value will work but this may not be doable if somebody insists on putting in maximal values (2g-1, 4g-1 2 to 64th -1 etc).
3) Adding a token indicating an infinite value (for example INFINITE or NEVER). This would need to be properly handled throughout any processing of the life time including storing and retrieving the lease from storage.
4) Adjust the code to put a limit on the values used when processing a life time.
5) Change the configuration to limit what values can be used for lifetimes such that they won't be able to wrap.


Change History (4)

comment:1 Changed 4 years ago by hschempf

  • Milestone changed from Kea-proposed to DHCP Outstanding Tasks

per team meeting 16 sept, move to outstanding

comment:2 Changed 4 years ago by sar

  • Summary changed from Allow for very leases with long lifetimes to Allow for leases with very long lifetimes

comment:3 Changed 4 years ago by sar

  • Description modified (diff)

comment:4 Changed 4 years ago by tomek

  • Milestone changed from DHCP Outstanding Tasks to Outstanding Tasks

Milestone renamed

Note: See TracTickets for help on using tickets.