Non-threaded player, unwraps handling, invalid packet should not fail the application

This commit is contained in:
Wiktor Mazur
2019-11-11 12:23:28 +01:00
parent 93446c078e
commit b0c8340b9f
6 changed files with 97 additions and 206 deletions
+1 -1
View File
@@ -92,7 +92,7 @@ pub fn receive(tx: Sender<UdpPacket>) {
}
handle_ethernet_frame(&interface, &EthernetPacket::new(packet).unwrap(), &tx);
}
Err(e) => panic!("packetdump: unable to receive packet: {}", e),
Err(e) => warn!("packetdump: unable to receive packet: {}", e),
}
}
});