summaryrefslogtreecommitdiff
path: root/noncore/net
authormjm <mjm>2003-02-26 22:17:26 (UTC)
committer mjm <mjm>2003-02-26 22:17:26 (UTC)
commited168abe1c9c1384b0151ea9b49a7e364f9b67be (patch) (unidiff)
tree4364879aaa3c6fe8d963256a36717efc1b24d03c /noncore/net
parent60da6fed3516c5cb73930d0d2cdae253a16c12f8 (diff)
downloadopie-ed168abe1c9c1384b0151ea9b49a7e364f9b67be.zip
opie-ed168abe1c9c1384b0151ea9b49a7e364f9b67be.tar.gz
opie-ed168abe1c9c1384b0151ea9b49a7e364f9b67be.tar.bz2
added ok and fail msgs for gui
Diffstat (limited to 'noncore/net') (more/less context) (show whitespace changes)
-rw-r--r--noncore/net/wellenreiter/daemon/source/daemon.cc8
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
@@ -120,11 +120,15 @@ 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 if(!send_ok(GUIADDR, GUIPORT, STARTSNIFF))
126 wl_logerr("Cannot set OK_CMD to GUI");
125 break; 127 break;
126 case 99: 128 case STOPSNIFF:
127 wl_loginfo("Received STOPSNIFF command"); 129 wl_loginfo("Received STOPSNIFF command");
130 if(!send_ok(GUIADDR, GUIPORT, STOPSNIFF))
131 wl_logerr("Cannot set FAIL_CMD to GUI");
128 break; 132 break;
129 default: 133 default:
130 wl_logerr("Received unknown command: %d", retval); 134 wl_logerr("Received unknown command: %d", retval);