mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-14 10:10:12 +01:00
DEV9: Only log packets in debug mode
This commit is contained in:
1 parent
33b6cbc2a9
commit
82493343fa
1 file changed
+3
-1
@@ -36,7 +36,7 @@
|
||||
#endif
|
||||
|
||||
pcap_t* adhandle;
|
||||
pcap_dumper_t* dump_pcap;
|
||||
pcap_dumper_t* dump_pcap = nullptr;
|
||||
char errbuf[PCAP_ERRBUF_SIZE];
|
||||
mac_address broadcast_mac = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
|
||||
|
||||
@@ -163,8 +163,10 @@ int pcap_io_init(char* adapter, mac_address virtual_mac)
|
||||
return -1;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
const std::string plfile(s_strLogPath + "/pkt_log.pcap");
|
||||
dump_pcap = pcap_dump_open(adhandle, plfile.c_str());
|
||||
#endif
|
||||
|
||||
pcap_io_running = 1;
|
||||
Console.WriteLn("Adapter Ok.");
|
||||
|
||||
Reference in new issue
Block a user