新TAP测试
This commit is contained in:
parent
ac5ae1a5fb
commit
3e115e196c
|
@ -83,7 +83,7 @@ func NewNetTunnel() *NetTunnel {
|
|||
|
||||
var frame ethernet.Frame = rbuf
|
||||
|
||||
log.Println(len(frame))
|
||||
log.Printf("% x len: %d", frame.Ethertype(), len(frame))
|
||||
switch frame.Ethertype() {
|
||||
case ethernet.ARP:
|
||||
log.Printf("bytes len: %d type(arp): % x", len(rbuf), frame.Ethertype()) // 数据长度
|
||||
|
|
Loading…
Reference in New Issue
Block a user