aboutsummaryrefslogtreecommitdiffstats
path: root/pcap.h
diff options
context:
space:
mode:
authorguy <guy>2000-10-25 06:59:09 +0000
committerguy <guy>2000-10-25 06:59:09 +0000
commitc9007914772da9bdc948a2449bf722afbf101d94 (patch)
treeb4ecf5e8b98dbf7ae314bd9505afd8c63db28c61 /pcap.h
parentfd8a7488b13e646c1ee8f1420db1746117ac8f70 (diff)
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.
Diffstat (limited to 'pcap.h')
-rw-r--r--pcap.h5
1 files changed, 2 insertions, 3 deletions
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 *);