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),
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user