This commit is contained in:
黄思敏 2022-08-29 18:07:38 +08:00
parent 0c30c12759
commit c53a95e696

View File

@ -272,7 +272,7 @@ func (nc *NetCard) runWrite() {
for _, buf := range bufs {
var wbuf []byte
wbuf = append(wbuf, buf[0:20]...)
wbuf = append(wbuf, buf[0:8]...)
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))