Files
lneto/x/xnet/xnet_debug_pcap.go
2026-06-17 16:42:38 -03:00

18 lines
239 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.PrintEthernet(msg, b)
}