From 5bae5ca7b502faf976237c18390dcd47fbd6c82c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E6=80=9D=E6=95=8F?= Date: Wed, 31 Aug 2022 18:14:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0TAP=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- netcard.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/netcard.go b/netcard.go index cbba34e..de2f7d7 100644 --- a/netcard.go +++ b/netcard.go @@ -112,6 +112,7 @@ func NewNetTunnel() *NetTunnel { go func() { for wbuf := range nt.writer { var frame ethernet.Frame = wbuf + log.Printf("ifce write %d", len(frame)) _, err := nt.ifce.Write(frame) if err != nil { log.Println(err) @@ -164,7 +165,7 @@ func (nt *NetTunnel) SendFrames(stream gen.FrameService_SendFramesServer) error if err != nil { log.Panic(err) } - log.Printf("request: %v", len(request.Frames)) + frames := Decompress(request.GetFrames()) if len(frames) > 0 { for _, frame := range frames {