fix: added forgotten error handling

AggregateInterface was lacking some special error handling for certain cases
This commit is contained in:
Andrew Rioux
2023-05-01 12:52:32 -04:00
parent 24dff10b6b
commit c142af62f1
2 changed files with 68 additions and 26 deletions

View File

@@ -89,7 +89,7 @@ async fn main() -> anyhow::Result<()> {
interface.set_filter("inbound and udp port 54248", true, None)?;
interface.prune(|_, interface| interface.datalink() == pcap_sys::consts::DLT_EN10MB);
interface.prune(|_, interface| interface.datalink() != pcap_sys::consts::DLT_EN10MB);
enum EventType {
Packet((String, Result<EthernetPacket, pcap_sys::error::Error>)),