        let hdr = pcap_pkthdr {
            ts: timeval {
                tv_sec: 0,
                tv_usec: 0,
            },
            caplen: packet.len() as u32,
            len: orig_len,
        };
        let data = packet.as_ptr();
        unsafe {
            pcap_offline_filter(
                (&mut self.0) as *mut bpf_program,