Lines Matching refs:status
66 int status = 0;
137 status = pcap_set_snaplen(pd, snaplen);
138 if (status != 0)
140 device, pcap_statustostr(status));
142 status = pcap_set_promisc(pd, 1);
143 if (status != 0)
145 device, pcap_statustostr(status));
148 status = pcap_set_rfmon(pd, 1);
149 if (status != 0)
151 device, pcap_statustostr(status));
153 status = pcap_set_timeout(pd, 1000);
154 if (status != 0)
156 device, pcap_statustostr(status));
158 status = pcap_set_buffer_size(pd, bufsize);
159 if (status != 0)
161 device, pcap_statustostr(status));
163 status = pcap_activate(pd);
164 if (status < 0) {
169 pcap_statustostr(status), pcap_geterr(pd));
170 } else if (status > 0) {
176 pcap_statustostr(status), pcap_geterr(pd));
190 exit(status < 0 ? 1 : 0);