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 {