This commit is contained in:
黄思敏 2022-08-25 18:05:12 +08:00
parent 2722c58122
commit 3ee26563ff

2
tap.go
View File

@ -160,6 +160,8 @@ func (nc *NetCard) runRead() {
log.Fatal(err)
}
log.Println(net.IP(rframe.Destination()).String())
if rframe.Ethertype() != ethernet.IPv4 {
continue
}