dhcp: lease infinite is a value, and the binding it grants never lapses #1776
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
jaylouisw/packetforge!1776
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "rev/1117-0230"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The vendor states the command with two forms and names the word:
This console parsed the three numbers and nothing else. One session on an ISR 4331, before:
Three wrong answers from one word: the word was refused as incomplete (nothing was missing), the pool silently kept
the 1-day default, and the pool view reported that default as if it were configured.
What changed
engine/dhcp.js— the pool'sleaseSecmay be the wordinfinite, carried throughnormalizePool()and acceptedby
validatePool();leaseSeconds()returns0xfffffffffor it (RFC 2131 §3.3 reserves that value for"infinity");
recordLease()gives such a leaseexpiresStep = Infinity, which no run reaches andexpireLeases()never collects;
leaseTable()reportsremainingSec = Infinityand the stateactive; a saved document writes theword (JSON has no
Infinity) and reads it back.engine/cli.js—lease infiniteis accepted in the pool sub-mode, andlease infinite 5is refused naming bothforms; the incomplete-command line advertises the word;
show running-configprintslease infinite;show ip dhcp poolprintsLease: Infinite (never expires);show ip dhcp bindingprintsInfinitein theExpires incolumn, which is the vendor's own word for that cell in a binding table(Cisco Business 250 CLI Guide
prints
Infinite Automatic/Infinite Static).engine/simulator.js— the granted lease is read throughleaseSeconds(), so the ACK carries0xffffffffinsteadof
NaN, which is whatNumber('infinite')had made of it.test/dhcp-infinite-lease.test.js(24 assertions) — acceptance, read-back, a binding that survives a hundred secondswhile the one-minute control in the same lab expires, the save/restore round trip, and the two refusals.
test/help-completeness.test.js— the advertised list now proveslease <days> <hours> <minutes>andlease infinite, matching the help line and docs/CLI.md.research/dhcp-infinite-lease.md— evidence, what is inferred (the word in a binding row for an automatic lease),and what is unresolved (sub-mode keyword abbreviation; whether an all-zero duration means infinite on any IOS
release; the trailing-minutes padding of the numeric form).
Gates
node scripts/syntax-check.js— 372 files, all OK.npm test— 301 suites, 10,569 assertions, 0 failed (723 s).lease 0is still refused as a zero-length lease rather than read as a synonym: none of the references read for thisrun says an all-zero duration is infinite, and
research/dhcp-infinite-lease.mdsays so out loud.lease infiniteis a value, and the binding it grants never lapsesThe vendor states `lease {days [hours [minutes]] | infinite}` in the IOS IP Addressing Services Command Reference, with `infinite` meaning "the duration of the lease is unlimited". This console parsed the three numbers only, so the word a printer pool actually wants was refused as `Incomplete command: lease <days> [hours] [minutes]` - a complaint about a missing argument for a command typed in full - the pool silently kept the 1-day default, and `show ip dhcp pool` then reported 86400s as if that were configured. The word is now the pool's value: normalizePool/validatePool carry it, leaseSeconds() sends 0xffffffff (RFC 2131 3.3's "infinity"), recordLease() sets expiresStep to Infinity so expireLeases() never collects it, the saved document writes/reads the word (JSON has no Infinity), running-config prints `lease infinite`, the pool view says Infinite (never expires) and the binding table's Expires in column says Infinite - the vendor's word for that cell. research/dhcp-infinite-lease.md records the evidence, what is inferred (the word in a binding row for an automatic lease) and what is left unresolved (sub-mode keyword abbreviation, and whether an all-zero duration means infinite anywhere).326edc8640edf552b15bedf552b15b89061bf34489061bf3440c3a252aa7