Documentation ¶
Index ¶
- func StringCandidates() []string
- type DHCPLease
- func (l *DHCPLease) DurationUntilRebind() time.Duration
- func (l DHCPLease) DurationUntilRenew() time.Duration
- func (l DHCPLease) GetLeaseExpirationMoment() time.Time
- func (l DHCPLease) GetRebindMoment() time.Time
- func (l DHCPLease) IsRebindPeriodExpired() bool
- func (l DHCPLease) IsRenewPeriodExpired() bool
- func (l *DHCPLease) ResetLease()
- func (l DHCPLease) String() string
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StringCandidates ¶
func StringCandidates() []string
Types ¶
type DHCPLease ¶
type DHCPLease struct { State State IpAddr net.IP Dns net.IP SubnetMask net.IPMask ServerIdentifier net.IP LeaseInitTime time.Time LeaseDuration time.Duration T1 time.Duration T2 time.Duration Offer packet.DHCPPacket }
func NewDHCPLease ¶
func NewDHCPLease() DHCPLease
func (*DHCPLease) DurationUntilRebind ¶
func (DHCPLease) DurationUntilRenew ¶
func (DHCPLease) GetLeaseExpirationMoment ¶
func (DHCPLease) GetRebindMoment ¶
func (DHCPLease) IsRebindPeriodExpired ¶
func (DHCPLease) IsRenewPeriodExpired ¶
func (*DHCPLease) ResetLease ¶
func (l *DHCPLease) ResetLease()
Click to show internal directories.
Click to hide internal directories.