mirror of
https://github.com/soypat/lneto.git
synced 2026-09-08 15:59:10 +00:00
minor dhcp changes to better match seqs exchange
This commit is contained in:
@@ -30,6 +30,11 @@ const (
|
||||
StateRebooting // rebooting
|
||||
)
|
||||
|
||||
// HasIP returns true if the state indicates the Client has an IP address assigned by server.
|
||||
func (state ClientState) HasIP() bool {
|
||||
return state == StateBound || state == StateRenewing || state == StateRebinding
|
||||
}
|
||||
|
||||
func AppendOption(dst []byte, opt OptNum, data ...byte) []byte {
|
||||
if len(data) > 255 {
|
||||
panic("option data too long")
|
||||
|
||||
Reference in New Issue
Block a user