This commit is contained in:
黄思敏 2022-08-26 09:13:32 +08:00
parent 3452d1c065
commit 438c071871

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("Dst: %s %s\n", waterutil.IPv4Destination(rframe), rframe.Destination())
log.Printf("Src: %s %s\n", waterutil.IPv4Source(rframe), rframe.Source()) log.Printf("Src: %s %s\n", waterutil.IPv4Source(rframe), rframe.Source())
log.Printf("Ethertype: % x\n", rframe.Ethertype()) log.Printf("Ethertype: %x %v\n", rframe.Ethertype(), waterutil.IsIPv4(rframe))
var buffer *[][]byte var buffer *[][]byte
var key = waterutil.IPv4Destination(rframe).String() var key = waterutil.IPv4Destination(rframe).String()