测试
This commit is contained in:
parent
1826d5c7dd
commit
0c30c12759
|
@ -271,10 +271,10 @@ func (nc *NetCard) runWrite() {
|
||||||
|
|
||||||
for _, buf := range bufs {
|
for _, buf := range bufs {
|
||||||
|
|
||||||
log.Printf("get wframes decode len: %d", len(buf))
|
|
||||||
var wbuf []byte
|
var wbuf []byte
|
||||||
wbuf = append(wbuf, buf[0:20]...)
|
wbuf = append(wbuf, buf[0:20]...)
|
||||||
wbuf = append(wbuf, waterutil.IPv4Payload(buf)...)
|
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))
|
log.Printf("get decode frames decode source: %s dst: %s", waterutil.IPv4Source(buf), waterutil.IPv4Destination(buf))
|
||||||
_, err := ifce.Write(wbuf)
|
_, err := ifce.Write(wbuf)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user