summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/wellenreiter/daemon/source/daemon.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/net/wellenreiter/daemon/source/daemon.cc b/noncore/net/wellenreiter/daemon/source/daemon.cc
index 6467af7..95f2f83 100644
--- a/noncore/net/wellenreiter/daemon/source/daemon.cc
+++ b/noncore/net/wellenreiter/daemon/source/daemon.cc
@@ -88,32 +88,32 @@ int main(int argc, char **argv)
88 /* check type of packet and start function according to it */ 88 /* check type of packet and start function according to it */
89 switch(retval) 89 switch(retval)
90 { 90 {
91 case 98: 91 case 98:
92 wl_loginfo("Received STARTSNIFF command"); 92 wl_loginfo("Received STARTSNIFF command");
93 break; 93 break;
94 case 99: 94 case 99:
95 wl_loginfo("Received STOPSNIFF command"); 95 wl_loginfo("Received STOPSNIFF command");
96 break; 96 break;
97 default: 97 default:
98 wl_logerr("Received unknown command: %d", retval); 98 wl_logerr("Received unknown command: %d", retval);
99 break; 99 break;
100 } 100 }
101 } 101 }
102 } /* FD_ISSET */ 102 } /* FD_ISSET */
103 103
104 /* Check pcap lib for packets */ 104 /* Check pcap lib for packets */
105 if(FD_ISSET(pcap_fileno(handletopcap), &rset)) 105 if(FD_ISSET(pcap_fileno(handletopcap), &rset))
106 { 106 {
107 107
108 /* Grab one single packet */ 108 /* Grab one single packet */
109 packet = pcap_next(handletopcap, &header); 109 packet = pcap_next(handletopcap, &header);
110 110
111 /* process the packet */ 111 /* process the packet */
112 process_packets(&header,*&packet); 112 process_packets(&header,*&packet, GUIADDR, GUIPORT);
113 } 113 }
114 114
115 } /* while(1) */ 115 } /* while(1) */
116 116
117 close(sock); 117 close(sock);
118 exit(0); 118 exit(0);
119} 119}