From c9007914772da9bdc948a2449bf722afbf101d94 Mon Sep 17 00:00:00 2001 From: guy Date: Wed, 25 Oct 2000 06:59:09 +0000 Subject: The Linux "pcap_setfilter()" makes a copy of the filter it's handed, and installs that copy; when closing a pcap_t on Linux, free that copy. --- pcap.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'pcap.h') diff --git a/pcap.h b/pcap.h index 84c4706..57b7bc9 100644 --- a/pcap.h +++ b/pcap.h @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * @(#) $Header: /tcpdump/master/libpcap/pcap.h,v 1.29 2000-10-12 04:16:52 guy Exp $ (LBL) + * @(#) $Header: /tcpdump/master/libpcap/pcap.h,v 1.30 2000-10-25 06:59:10 guy Exp $ (LBL) */ #ifndef lib_pcap_h @@ -150,8 +150,7 @@ int pcap_compile(pcap_t *, struct bpf_program *, char *, int, bpf_u_int32); int pcap_compile_nopcap(int, int, struct bpf_program *, char *, int, bpf_u_int32); -/* XXX */ -int pcap_freecode(pcap_t *, struct bpf_program *); +void pcap_freecode(pcap_t *, struct bpf_program *); int pcap_datalink(pcap_t *); int pcap_snapshot(pcap_t *); int pcap_is_swapped(pcap_t *); -- cgit v1.2.3