summaryrefslogtreecommitdiff
path: root/noncore
Unidiff
Diffstat (limited to 'noncore') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/wellenreiter/daemon/source/daemon.cc18
1 files changed, 11 insertions, 7 deletions
diff --git a/noncore/net/wellenreiter/daemon/source/daemon.cc b/noncore/net/wellenreiter/daemon/source/daemon.cc
index d77d987..3a28217 100644
--- a/noncore/net/wellenreiter/daemon/source/daemon.cc
+++ b/noncore/net/wellenreiter/daemon/source/daemon.cc
@@ -120,13 +120,17 @@ int main(int argc, char **argv)
120 /* check type of packet and start function according to it */ 120 /* check type of packet and start function according to it */
121 switch(retval) 121 switch(retval)
122 { 122 {
123 case 98: 123 case STARTSNIFF:
124 wl_loginfo("Received STARTSNIFF command"); 124 wl_loginfo("Received STARTSNIFF command");
125 break; 125 if(!send_ok(GUIADDR, GUIPORT, STARTSNIFF))
126 case 99: 126 wl_logerr("Cannot set OK_CMD to GUI");
127 wl_loginfo("Received STOPSNIFF command"); 127 break;
128 break; 128 case STOPSNIFF:
129 default: 129 wl_loginfo("Received STOPSNIFF command");
130 if(!send_ok(GUIADDR, GUIPORT, STOPSNIFF))
131 wl_logerr("Cannot set FAIL_CMD to GUI");
132 break;
133 default:
130 wl_logerr("Received unknown command: %d", retval); 134 wl_logerr("Received unknown command: %d", retval);
131 break; 135 break;
132 } 136 }