mirror of
https://github.com/oliverschmidt/contiki.git
synced 2025-02-01 18:33:12 +00:00
fixed IOException bug in pcap exporter
This commit is contained in:
parent
c9a109dbc8
commit
0a8331f7e6
@ -50,7 +50,12 @@ public class IEEE802154Analyzer extends PacketAnalyzer {
|
||||
public int analyzePacket(Packet packet, StringBuffer brief, StringBuffer verbose) {
|
||||
|
||||
if (pcapExporter != null) {
|
||||
pcapExporter.exportPacketData(packet.getPayload());
|
||||
try {
|
||||
pcapExporter.exportPacketData(packet.getPayload());
|
||||
} catch (IOException e) {
|
||||
System.err.println("Could not export PCap data");
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
int pos = packet.pos;
|
||||
|
Loading…
x
Reference in New Issue
Block a user