Lines Matching refs:status
132 int status;
150 status = pcap_dispatch(pd, -1, countme,
152 if (status < 0)
154 if (status != 0) {
156 status, packet_count);
160 if (status == -2) {
170 if (status == -1) {
190 int status;
228 status = pcap_set_snaplen(pd, 65535);
229 if (status != 0)
231 device, pcap_statustostr(status));
233 status = pcap_set_immediate_mode(pd, 1);
234 if (status != 0)
236 device, pcap_statustostr(status));
238 status = pcap_set_timeout(pd, 5*60*1000);
239 if (status != 0)
241 device, pcap_statustostr(status));
242 status = pcap_activate(pd);
243 if (status < 0) {
248 pcap_statustostr(status), pcap_geterr(pd));
249 } else if (status > 0) {
255 pcap_statustostr(status), pcap_geterr(pd));
277 status = pthread_create(&capture_thread, NULL, capture_thread_func,
279 if (status != 0)
280 error("Can't create capture thread: %s", strerror(status));
295 status = pthread_kill(capture_thread, SIGUSR1);
296 if (status != 0)
297 warning("Can't interrupt capture thread: %s", strerror(status));
298 status = pthread_join(capture_thread, &retval);
299 if (status != 0)
301 strerror(status));
306 exit(status == -1 ? 1 : 0);