summaryrefslogtreecommitdiff
authormjm <mjm>2002-12-04 19:51:46 (UTC)
committer mjm <mjm>2002-12-04 19:51:46 (UTC)
commit1f70a97d8f4ccedbfdbde72e70649f01d92f190a (patch) (unidiff)
treef1908f235fb90ed578f66bcbfa4d255090b2ed62
parentad62016e2d341876c068bead69a40ebd0370d822 (diff)
downloadopie-1f70a97d8f4ccedbfdbde72e70649f01d92f190a.zip
opie-1f70a97d8f4ccedbfdbde72e70649f01d92f190a.tar.gz
opie-1f70a97d8f4ccedbfdbde72e70649f01d92f190a.tar.bz2
fit to new sniffer function
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
@@ -96,24 +96,24 @@ int main(int argc, char **argv)
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}