新TAP测试

This commit is contained in:
黄思敏 2022-08-31 18:18:40 +08:00
parent ac5ae1a5fb
commit 3e115e196c

View File

@ -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()) // 数据长度