Lines Matching refs:pcap
31 pri->pcap = p; in pcap_user_init()
41 if (pri->pcap == NULL) in pcap_user_open()
58 err = pcap_compile(pri->pcap, in pcap_user_open()
63 "'%s'\n", pcap_geterr(pri->pcap)); in pcap_user_open()
67 err = pcap_setfilter(pri->pcap, pri->compiled); in pcap_user_open()
70 "failed - '%s'\n", pcap_geterr(pri->pcap)); in pcap_user_open()
75 return PCAP_FD(pri->pcap); in pcap_user_open()
89 if (pri->pcap != NULL) in pcap_remove()
90 pcap_close(pri->pcap); in pcap_remove()
117 n = pcap_dispatch(pri->pcap, 1, handler, (u_char *) &hdata); in pcap_user_read()
120 pcap_geterr(pri->pcap)); in pcap_user_read()