mirror of
https://github.com/soypat/lneto.git
synced 2026-08-17 13:23:30 +00:00
813b7b5e57
* good code today * add netdev.Runner * round off APIs more * better interface method documentation * improve DHCP netstack API * add pico w netdev example * remove temp file * keep thinking about this. this is hard :/ * fix ci * small fixer * working dhcp * fix rebase API mismatches * begin adding espradio example * keep working on espradio, icmp not working * fix icmp by fixing dhcp
18 lines
237 B
Go
18 lines
237 B
Go
//go:build xnetdebug
|
|
|
|
package xnet
|
|
|
|
import "os"
|
|
|
|
var _pcap CapturePrinter
|
|
|
|
func init() {
|
|
_pcap.Configure(os.Stdout, CapturePrinterConfig{
|
|
NamespaceWidth: 3,
|
|
})
|
|
}
|
|
|
|
func debugPacket(msg string, b []byte) {
|
|
_pcap.PrintPacket(msg, b)
|
|
}
|