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 {