Lines Matching defs:pd
101 static pcap_t *pd;
172 pd = pcap_create(device, ebuf);
173 if (pd == NULL)
175 status = pcap_set_snaplen(pd, 65535);
180 status = pcap_set_immediate_mode(pd, 1);
185 status = pcap_set_timeout(pd, timeout);
189 status = pcap_activate(pd);
195 pcap_statustostr(status), pcap_geterr(pd));
202 pcap_statustostr(status), pcap_geterr(pd));
211 if (pcap_compile(pd, &fcode, cmdbuf, 1, netmask) < 0)
212 error("%s", pcap_geterr(pd));
214 if (pcap_setfilter(pd, &fcode) < 0)
215 error("%s", pcap_geterr(pd));
216 if (pcap_setnonblock(pd, nonblock, ebuf) == -1)
221 status = pcap_dispatch(pd, -1, countme,
244 program_name, pcap_geterr(pd));
246 pcap_close(pd);