Home
last modified time | relevance | path

Searched refs:bpf_buffer (Results 1 – 1 of 1) sorted by relevance

/external/scapy/scapy/arch/bpf/
Dsupersocket.py227 def extract_frames(self, bpf_buffer): argument
231 len_bb = len(bpf_buffer)
244 bh_caplen = struct.unpack('I', bpf_buffer[bh_tstamp_offset:bh_tstamp_offset+4])[0]
246 bh_datalen = struct.unpack('I', bpf_buffer[next_offset:next_offset+4])[0]
248 bh_hdrlen = struct.unpack('H', bpf_buffer[next_offset:next_offset+2])[0]
253 frame_str = bpf_buffer[bh_hdrlen:bh_hdrlen+bh_caplen]
265 self.extract_frames(bpf_buffer[end:])
276 bpf_buffer = os.read(self.ins, x)
283 self.extract_frames(bpf_buffer)