mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-06-01 09:42:41 +00:00
refactor: backport pcap impl
This commit is contained in:
parent
49096e46bb
commit
3d47180e85
7 changed files with 272 additions and 235 deletions
|
|
@ -18,7 +18,7 @@ pub fn setup_capture(file_name: Option<String>) {
|
|||
let mut pcap_writer = pcap_file::pcapng::PcapNgWriter::new(file).unwrap();
|
||||
|
||||
// Write headers
|
||||
pcap_writer.write_block(
|
||||
let _ = pcap_writer.write_block(
|
||||
&pcap_file::pcapng::blocks::interface_description::InterfaceDescriptionBlock {
|
||||
linktype: pcap_file::DataLink::ETHERNET,
|
||||
snaplen: 0xFFFF,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue