mirror of
https://github.com/soypat/lneto.git
synced 2026-08-09 09:23:40 +00:00
18 lines
239 B
Go
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)
|
|
}
|