HTTP server example and DHCP Server rewrite (#38)

* improvements to dhcpv4 server

* begin adding examples/httpserver

* add better VLAN tagging methods

* pcap: add error printing; fix bug in CRC

* ipv4: ToS and Flags construction and flag manipulation improvements

* add dhcp interception to httptap and improve httpserver example
This commit is contained in:
Pat Whittingslow
2026-02-18 20:48:30 +01:00
committed by GitHub
parent fae4552ddb
commit bf2d07d9f0
12 changed files with 1403 additions and 48 deletions
+10
View File
@@ -80,6 +80,16 @@ func (f *Formatter) FormatFrame(dst []byte, frm Frame, pkt []byte) (_ []byte, er
return dst, err
}
}
if len(frm.Errors) > 0 {
dst = append(dst, " errs=("...)
for i, err := range frm.Errors {
if i != 0 {
dst = append(dst, ';')
}
dst = append(dst, err.Error()...)
}
dst = append(dst, ')')
}
return dst, nil
}