This commit is contained in:
黄思敏 2022-08-29 18:05:49 +08:00
parent 1826d5c7dd
commit 0c30c12759

View File

@ -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 {