Non-threaded player, unwraps handling, invalid packet should not fail the application
This commit is contained in:
@@ -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),
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -6,7 +6,7 @@ pub use layout::*;
|
||||
|
||||
use std::collections::HashMap;
|
||||
use std::convert::TryFrom;
|
||||
use std::io::{Cursor, Read};
|
||||
use std::io::{Cursor};
|
||||
|
||||
impl TryFrom<(&ReliableCommand, &mut Cursor<&[u8]>)> for Message {
|
||||
type Error = &'static str;
|
||||
|
||||
Reference in New Issue
Block a user