测试
This commit is contained in:
parent
512bed4983
commit
226d8e777b
2
tap.go
2
tap.go
|
@ -160,7 +160,7 @@ func (nc *NetCard) runRead() {
|
|||
log.Fatal(err)
|
||||
}
|
||||
|
||||
log.Printf("%v %v", net.IP(rframe.Source()).String(), rframe.Destination())
|
||||
log.Printf("%v %v", net.IP(rframe.Source()).To4().String(), net.IP(rframe.Destination()).To4())
|
||||
|
||||
if rframe.Ethertype() != ethernet.IPv4 {
|
||||
continue
|
||||
|
|
Loading…
Reference in New Issue
Block a user