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