-rw-r--r-- | noncore/net/wellenreiter/daemon/source/daemon.cc | 8 |
1 files changed, 6 insertions, 2 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 @@ -119,13 +119,17 @@ int main(int argc, char **argv) { /* check type of packet and start function according to it */ switch(retval) { - case 98: + case STARTSNIFF: wl_loginfo("Received STARTSNIFF command"); + if(!send_ok(GUIADDR, GUIPORT, STARTSNIFF)) + wl_logerr("Cannot set OK_CMD to GUI"); break; - case 99: + case STOPSNIFF: wl_loginfo("Received STOPSNIFF command"); + if(!send_ok(GUIADDR, GUIPORT, STOPSNIFF)) + wl_logerr("Cannot set FAIL_CMD to GUI"); break; default: wl_logerr("Received unknown command: %d", retval); break; |