From 8c3f04816a8fd23a5eabde1b36cb2471e06229bc Mon Sep 17 00:00:00 2001 From: Vladimir Lavor Date: Tue, 4 Aug 2020 12:37:25 +0200 Subject: Update libmemif Change-Id: I5db0460f375c9e34bc09170a310d52e1a619ed34 Signed-off-by: Vladimir Lavor --- extras/libmemif/packethandle.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'extras/libmemif/packethandle.go') diff --git a/extras/libmemif/packethandle.go b/extras/libmemif/packethandle.go index 83bf90a..6889c94 100644 --- a/extras/libmemif/packethandle.go +++ b/extras/libmemif/packethandle.go @@ -16,9 +16,9 @@ package libmemif import ( "github.com/google/gopacket" - "time" - "sync" "io" + "sync" + "time" ) type memoizedPacket struct { @@ -55,7 +55,7 @@ func (memif *Memif) NewPacketHandle(queueId uint8, rxCount uint16) *MemifPacketH } } -// Reads packet data from memif in bursts, based on previously configured rxCount parameterer. Then caches the +// Reads packet data from memif in bursts, based on previously configured rxCount parameter. Then caches the // resulting packets and returns them 1 by 1 from this method until queue is empty then tries to call new rx burst // to read more data. If no data is returned, io.EOF error is thrown and caller should stop reading. func (handle *MemifPacketHandle) ReadPacketData() (data []byte, ci gopacket.CaptureInfo, err error) { -- cgit 1.2.3-korg