/* entry point for using the compiler with no pcap open pass in all the stuff that is needed explicitly instead.  */
int pcap_compile_nopcap(int snaplen_arg, int linktype_arg, struct bpf_program *program, const char *buf, int optimize, bpf_u_int32 mask)
/* entry point for using the compiler with no pcap open pass in all the stuff that is needed explicitly instead.  */
int pcap_compile_nopcap(int snaplen_arg, int linktype_arg, struct bpf_program *program, const char *buf, int optimize, bpf_u_int32 mask)
{
	pcap_t *p;
	int ret;
	p = pcap_open_dead(linktype_arg, snaplen_arg);
	if (p == NULL)
		return (-1);
	ret = pcap_compile(p, program, buf, optimize, mask);
	pcap_close(p);
	return (ret);
}