From 0c30c127598d97624a6f9d3c569f65e5293a14f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E6=80=9D=E6=95=8F?= Date: Mon, 29 Aug 2022 18:05:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- netcard.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netcard.go b/netcard.go index 709b6e9..0060e02 100644 --- a/netcard.go +++ b/netcard.go @@ -271,10 +271,10 @@ func (nc *NetCard) runWrite() { for _, buf := range bufs { - log.Printf("get wframes decode len: %d", len(buf)) var wbuf []byte wbuf = append(wbuf, buf[0:20]...) wbuf = append(wbuf, waterutil.IPv4Payload(buf)...) + log.Printf("get wframes decode len: %d, write buf: %d", len(buf), len(wbuf)) log.Printf("get decode frames decode source: %s dst: %s", waterutil.IPv4Source(buf), waterutil.IPv4Destination(buf)) _, err := ifce.Write(wbuf) if err != nil {