DHCPv4+Debug (#170)

* DHCPv4+Debug: add RawData method and improve Logging semantics with configured logger instead of default

* add xnet.LogAllocs
This commit is contained in:
Pat Whittingslow
2026-07-26 13:55:48 -03:00
committed by GitHub
parent 8873b55e5d
commit a3f2742abf
2 changed files with 31 additions and 3 deletions
+3
View File
@@ -44,6 +44,9 @@ type Frame struct {
buf []byte
}
// RawData returns the underlying frame buffer.
func (frm Frame) RawData() []byte { return frm.buf }
// OptionsPayload returns the options portion of the DHCP frame. May be zero lengthed.
func (frm Frame) OptionsPayload() []byte {
return frm.buf[OptionsOffset:]