This commit is contained in:
黄思敏 2022-08-26 09:14:30 +08:00
parent 438c071871
commit ba9aa3b7db

2
tap.go
View File

@ -166,7 +166,7 @@ func (nc *NetCard) runRead() {
log.Printf("Dst: %s %s\n", waterutil.IPv4Destination(rframe), rframe.Destination())
log.Printf("Src: %s %s\n", waterutil.IPv4Source(rframe), rframe.Source())
log.Printf("Ethertype: %x %v\n", rframe.Ethertype(), waterutil.IsIPv4(rframe))
log.Printf("Ethertype: % x %v\n", rframe.Ethertype(), waterutil.IsIPv4(rframe))
var buffer *[][]byte
var key = waterutil.IPv4Destination(rframe).String()