This commit is contained in:
黄思敏 2022-08-25 18:13:57 +08:00
parent 26b5b5431a
commit 7ae8c78c95

2
tap.go
View File

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