Ethereal-dev: [Ethereal-dev] pcap_compile_nopcap() on netbsd

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: itojun@xxxxxxxxxx (Jun-ichiro itojun Hagino)
Date: Mon, 15 Dec 2003 13:48:14 +0900 (JST)
	netbsd uses different function prototype than tcpdump.org distribution
	of libpcap, for pcap_compile_nopcap():
	the last char * is pointer for error code (must be of PCAP_ERRBUF_SIZE).
	i guess that configure.in should be annotated to check these two
	variants.

	(and as a sidenote, i guess tcpdump.org should adapt the last char *,
	as it does not report the cause when cap_compile_nopcap() fails)

itojun



netbsd
int     pcap_compile_nopcap(int, int, struct bpf_program *, char *, int, bpf_u_int32, char *);

tcpdump.org
int     pcap_compile_nopcap(int, int, struct bpf_program *, char *, int, bpf_u_int32);