Lines Matching refs:pd
220 static pcap_t *pd; variable
231 pcap_t *pd; member
1612 pd = pcap_open_offline_with_tstamp_precision(RFileName, in main()
1615 pd = pcap_open_offline(RFileName, ebuf); in main()
1618 if (pd == NULL) in main()
1622 if (cap_rights_limit(fileno(pcap_file(pd)), &rights) < 0 && in main()
1627 dlt = pcap_datalink(pd); in main()
1670 pd = open_interface(device, ndo, ebuf); in main()
1671 if (pd == NULL) { in main()
1698 pd = open_interface(device, ndo, ebuf); in main()
1699 if (pd == NULL) in main()
1719 if(pcap_setbuff(pd, Bflag)==-1){ in main()
1720 error("%s", pcap_geterr(pd)); in main()
1724 show_dlts_and_exit(pd, device); in main()
1727 if (pcap_set_datalink(pd, yflag_dlt) < 0) in main()
1728 error("%s", pcap_geterr(pd)); in main()
1735 if (yflag_dlt != pcap_datalink(pd)) { in main()
1744 i = pcap_snapshot(pd); in main()
1764 if (pcap_compile(pd, &fcode, cmdbuf, Oflag, netmask) < 0) in main()
1765 error("%s", pcap_geterr(pd)); in main()
1768 pcap_close(pd); in main()
1843 if (pcap_setfilter(pd, &fcode) < 0) in main()
1844 error("%s", pcap_geterr(pd)); in main()
1855 if (cap_rights_limit(pcap_fileno(pd), &rights) < 0 && in main()
1859 if (cap_ioctls_limit(pcap_fileno(pd), cmds, in main()
1879 p = pcap_dump_open(pd, dumpinfo.CurrentFileName); in main()
1894 error("%s", pcap_geterr(pd)); in main()
1925 dumpinfo.pd = pd; in main()
1937 dlt = pcap_datalink(pd); in main()
1980 dlt = pcap_datalink(pd); in main()
2000 status = pcap_loop(pd, cnt, callback, pcap_userdata); in main()
2029 program_name, pcap_geterr(pd)); in main()
2038 pcap_close(pd); in main()
2045 pd = pcap_open_offline(RFileName, ebuf); in main()
2046 if (pd == NULL) in main()
2050 if (cap_rights_limit(fileno(pcap_file(pd)), in main()
2055 new_dlt = pcap_datalink(pd); in main()
2086 if (pcap_compile(pd, &fcode, cmdbuf, Oflag, netmask) < 0) in main()
2087 error("%s", pcap_geterr(pd)); in main()
2093 if (pcap_setfilter(pd, &fcode) < 0) in main()
2094 error("%s", pcap_geterr(pd)); in main()
2138 pcap_breakloop(pd); in cleanup()
2146 if (pd != NULL && pcap_file(pd) == NULL) { in cleanup()
2182 if (pcap_stats(pd, &stats) < 0) { in info()
2183 (void)fprintf(stderr, "pcap_stats: %s\n", pcap_geterr(pd)); in info()
2374 dump_info->p = pcap_dump_fopen(dump_info->pd, fp); in dump_packet_and_trunc()
2376 dump_info->p = pcap_dump_open(dump_info->pd, dump_info->CurrentFileName); in dump_packet_and_trunc()
2383 error("%s", pcap_geterr(pd)); in dump_packet_and_trunc()
2445 dump_info->p = pcap_dump_fopen(dump_info->pd, fp); in dump_packet_and_trunc()
2447 dump_info->p = pcap_dump_open(dump_info->pd, dump_info->CurrentFileName); in dump_packet_and_trunc()
2454 error("%s", pcap_geterr(pd)); in dump_packet_and_trunc()