Lines Matching refs:pd
48 static pcap_t *pd; variable
121 pd = pcap_open_live(device, 65535, 0, 1000, ebuf); in main()
122 if (pd == NULL) in main()
133 if (pcap_compile(pd, &fcode, cmdbuf, 1, netmask) < 0) in main()
134 error("%s", pcap_geterr(pd)); in main()
136 if (pcap_setfilter(pd, &fcode) < 0) in main()
137 error("%s", pcap_geterr(pd)); in main()
138 if (pcap_get_selectable_fd(pd) == -1) in main()
141 if (pcap_setnonblock(pd, 1, ebuf) == -1) in main()
144 selectable_fd = pcap_get_selectable_fd(pd); in main()
181 status = pcap_dispatch(pd, -1, countme, in main()
227 status = pcap_dispatch(pd, -1, countme, in main()
238 status = pcap_dispatch(pd, -1, countme, in main()
260 program_name, pcap_geterr(pd)); in main()
262 pcap_close(pd); in main()