Imported Upstream version 1.1.3
Hilko Bengen
9 years ago
126 | 126 | return |
127 | 127 | } |
128 | 128 | |
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 | |
130 | 130 | // code associated with that packet. If the packet is read successfully, the |
131 | 131 | // returned error is nil. |
132 | 132 | func (r *Ring) ReadPacketData() (data []byte, ci gopacket.CaptureInfo, err error) { |
136 | 136 | data = nil |
137 | 137 | return |
138 | 138 | } |
139 | data = data[:ci.Length] | |
139 | data = data[:ci.CaptureLength] | |
140 | 140 | return |
141 | 141 | } |
142 | 142 |