Codebase list gopacket / 493bb6c
Imported Upstream version 1.1.3 Hilko Bengen 9 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
126126 return
127127 }
128128
129 // NextResult returns the next packet read from the pcap handle, along with an error
129 // ReadPacketData returns the next packet read from the pcap handle, along with an error
130130 // code associated with that packet. If the packet is read successfully, the
131131 // returned error is nil.
132132 func (r *Ring) ReadPacketData() (data []byte, ci gopacket.CaptureInfo, err error) {
136136 data = nil
137137 return
138138 }
139 data = data[:ci.Length]
139 data = data[:ci.CaptureLength]
140140 return
141141 }
142142