This commit is contained in:
黄思敏 2022-08-26 09:04:17 +08:00
parent a88a1377c4
commit 3452d1c065

4
tap.go
View File

@ -164,8 +164,8 @@ func (nc *NetCard) runRead() {
// log.Printf("Payload: % x\n", rframe.Payload())
log.Printf("Dst: %s\n", waterutil.IPv4Destination(rframe))
log.Printf("Src: %s\n", waterutil.IPv4Source(rframe))
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\n", rframe.Ethertype())
var buffer *[][]byte