Lines Matching refs:pd
220 pcap_t *pd; in main() local
304 pd = pcap_create(device, ebuf); in main()
305 if (pd == NULL) in main()
307 status = pcap_set_snaplen(pd, 65535); in main()
311 status = pcap_set_promisc(pd, 1); in main()
316 status = pcap_set_rfmon(pd, 1); in main()
321 status = pcap_set_timeout(pd, 1000); in main()
325 status = pcap_activate(pd); in main()
331 pcap_statustostr(status), pcap_geterr(pd)); in main()
338 pcap_statustostr(status), pcap_geterr(pd)); in main()
342 pd = pcap_open_live(device, 65535, 1, 1000, ebuf); in main()
343 if (pd == NULL) in main()
349 pcap_fd = pcap_fileno(pd); in main()
390 if (pcap_compile(pd, &fcode, cmdbuf, 1, 0) < 0) in main()
391 error("can't compile filter: %s", pcap_geterr(pd)); in main()
392 if (pcap_setfilter(pd, &fcode) < 0) in main()
393 error("can't set filter: %s", pcap_geterr(pd)); in main()
395 pcap_close(pd); in main()