diff options
author | 2020-08-04 12:37:25 +0200 | |
---|---|---|
committer | 2020-08-07 06:56:10 +0000 | |
commit | 8c3f04816a8fd23a5eabde1b36cb2471e06229bc (patch) | |
tree | 46c342d822551eb4edfcbe588581bfb35363fd27 /extras/libmemif/packethandle.go | |
parent | 8049bd25baca6f5059ccd03c48a090607a65d8d0 (diff) |
Update libmemif
Change-Id: I5db0460f375c9e34bc09170a310d52e1a619ed34
Signed-off-by: Vladimir Lavor <vlavor@cisco.com>
Diffstat (limited to 'extras/libmemif/packethandle.go')
-rw-r--r-- | extras/libmemif/packethandle.go | 6 |
1 files changed, 3 insertions, 3 deletions
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) { |