Home | History | Annotate | Download | only in tests

Lines Matching defs:status

57 	int status = 0;
120 status = pcap_set_snaplen(pd, snaplen);
121 if (status != 0)
123 device, pcap_statustostr(status));
125 status = pcap_set_promisc(pd, 1);
126 if (status != 0)
128 device, pcap_statustostr(status));
131 status = pcap_set_rfmon(pd, 1);
132 if (status != 0)
134 device, pcap_statustostr(status));
136 status = pcap_set_timeout(pd, 1000);
137 if (status != 0)
139 device, pcap_statustostr(status));
141 status = pcap_set_buffer_size(pd, bufsize);
142 if (status != 0)
144 device, pcap_statustostr(status));
146 status = pcap_activate(pd);
147 if (status < 0) {
152 pcap_statustostr(status), pcap_geterr(pd));
153 } else if (status > 0) {
159 pcap_statustostr(status), pcap_geterr(pd));
170 exit(status < 0 ? 1 : 0);