Skip to content

Commit

Permalink
dhcpv4: add max lease time
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Koch <[email protected]>
  • Loading branch information
hugelgupf committed Dec 3, 2019
1 parent 776f862 commit 23cb9c9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dhcpv4/option_ip_address_lease_time.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
package dhcpv4

import (
"math"
"time"

"github.com/u-root/u-root/pkg/uio"
)

// MaxLeaseTime is the maximum lease time that can be encoded.
var MaxLeaseTime = math.MaxUint32 * time.Second

// Duration implements the IP address lease time option described by RFC 2132,
// Section 9.2.
type Duration time.Duration
Expand Down

0 comments on commit 23cb9c9

Please sign in to comment.