summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkaner <kaner@8d8ab74c-27aa-4a3d-9bde-523a2bc1f624>2009-02-09 20:06:42 +0000
committerkaner <kaner@8d8ab74c-27aa-4a3d-9bde-523a2bc1f624>2009-02-09 20:06:42 +0000
commit2533c4404552c17253559dda0eacabfa39ee1984 (patch)
treeed48f48d7a79932f6fda8a41ccb30747f5a47403
parent9f1a22031678f029b209160754047487c03b4713 (diff)
'Q' now quits Kismet :) (Thanks to mazzoo for the hint)
git-svn-id: https://dedected.org/svn/trunk@64 8d8ab74c-27aa-4a3d-9bde-523a2bc1f624
-rw-r--r--kismet-dect/client_module/dect_cliplugin.cc5
-rw-r--r--kismet-dect/server_module/dect_srvplugin.cc2
2 files changed, 5 insertions, 2 deletions
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"
"<enter> - 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;