This commit is contained in:
黄思敏 2022-08-25 18:12:44 +08:00
parent 5f65adae0a
commit 26b5b5431a

2
tap.go
View File

@ -160,7 +160,7 @@ func (nc *NetCard) runRead() {
log.Fatal(err)
}
log.Println(net.IP(rframe).To4().String())
log.Printf("%v", rframe.Destination())
if rframe.Ethertype() != ethernet.IPv4 {
continue