minor dhcp changes to better match seqs exchange

This commit is contained in:
soypat
2025-07-01 18:38:12 -03:00
parent 5cea9727f0
commit 234d3835a0
3 changed files with 32 additions and 6 deletions
+5
View File
@@ -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")