diff --git a/kismet-dect/client_module/dect_cliplugin.cc b/kismet-dect/client_module/dect_cliplugin.cc index 94e7255..030d5ef 100644 --- a/kismet-dect/client_module/dect_cliplugin.cc +++ b/kismet-dect/client_module/dect_cliplugin.cc @@ -137,6 +137,7 @@ public: "C - Sort by Channel (descending)\n" "s - Sort by view count (ascending)\n" "S - Sort by view count (descending)\n" + "Q - Quit\n" " - Sync with selected station and dump calls\n"; Kis_ModalAlert_Panel *ma = new Kis_ModalAlert_Panel(globalreg, globalreg->panel_interface); ma->Position(2, 2, 21, 70); @@ -240,6 +241,10 @@ public: sort_by = SORT_BY_COUNTSEEN; descending = true; } + if (in_key == 'Q') { + globalreg->fatal_condition = 1; + _MSG("Quitting..", MSGFLAG_INFO); + } return 0; } diff --git a/kismet-dect/server_module/dect_srvplugin.cc b/kismet-dect/server_module/dect_srvplugin.cc index 85059a1..38a7e3d 100644 --- a/kismet-dect/server_module/dect_srvplugin.cc +++ b/kismet-dect/server_module/dect_srvplugin.cc @@ -177,7 +177,6 @@ Dumpfile_Dectpcap::Dumpfile_Dectpcap(GlobalRegistry *in_globalreg) : globalreg->fatal_condition) { return; } - dectpcapfile = fopen(fname.c_str(), "w"); if (dectpcapfile == NULL) { snprintf(errstr, STATUS_MAX, @@ -242,7 +241,6 @@ int Dumpfile_Dectpcap::chain_handler(kis_packet *in_pack) { return 0; } - // XXX Dump .wav? struct pcap_pkthdr pcap_hdr; pcap_hdr.caplen = 73; pcap_hdr.len = 73;