From 7a28fca8ff855f3749d7275cd362e8b573133ba2 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 11:21:23 +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 --- device.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/device.go b/device.go index 26304ec..08b1e43 100644 --- a/device.go +++ b/device.go @@ -210,7 +210,7 @@ func (nc *NetCard) runRead() { // log.Printf("Payload: % x\n", rframe.Payload()) log.Printf("Ethertype: % x %v realAddr %s\n", rframe.Ethertype(), waterutil.IsIPv4(rframe), realAddr) - log.Printf("Dst: %s Src %s\n", waterutil.IPv4Destination(rframe), waterutil.IPv4Source(rframe)) + log.Printf("Src %s Dst: %s\n", waterutil.IPv4Source(rframe), waterutil.IPv4Destination(rframe)) var buffer *ExchangeBuffer if buffer, ok = bytesMap[realAddr]; !ok { @@ -223,11 +223,6 @@ func (nc *NetCard) runRead() { for dst, buffer := range bytesMap { - for _, buf := range buffer.BytesArray { - ifce.Write(buf) - } - continue - var cli *RPCClient if cli, ok = nc.clientMap[dst]; !ok {