Searched refs:bpf_buffer (Results 1 – 1 of 1) sorted by relevance
227 def extract_frames(self, bpf_buffer): argument231 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)