diff --git a/netcard.go b/netcard.go index a46d494..e61cf85 100644 --- a/netcard.go +++ b/netcard.go @@ -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()) // 数据长度