aboutsummaryrefslogtreecommitdiffstats
path: root/pcap.h
diff options
context:
space:
mode:
authormcr <mcr>1999-12-08 19:54:03 +0000
committermcr <mcr>1999-12-08 19:54:03 +0000
commite660fb694725da213b32f86f3727fbc5a489cbca (patch)
tree2b9b320f435f38f47c74ca33de326667626a9035 /pcap.h
parent45ac9150b775ae43e62216794ba122dbac8b0407 (diff)
This adds a new function that allows using the bpf compiler without
having a pcap open. One could argue that this and the existing compiler should be factored in common routines, but I was trying to make it clear that this wouldn't break the existing code. from Greg Troxel <gdt@ir.bbn.com>
Diffstat (limited to 'pcap.h')
-rw-r--r--pcap.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/pcap.h b/pcap.h
index cffbad8..42a99ff 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.21 1999-10-07 23:46:40 mcr Exp $ (LBL)
+ * @(#) $Header: /tcpdump/master/libpcap/pcap.h,v 1.22 1999-12-08 19:54:03 mcr Exp $ (LBL)
*/
#ifndef lib_pcap_h
@@ -115,6 +115,8 @@ char *pcap_strerror(int);
char *pcap_geterr(pcap_t *);
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 *);
int pcap_datalink(pcap_t *);