]> The Tcpdump Group git mirrors - libpcap/commitdiff
Declare "install_bpf_program()" in "pcap-int.h", not "gencode.h"; it has
authorguy <guy>
Sat, 4 Nov 2000 10:09:55 +0000 (10:09 +0000)
committerguy <guy>
Sat, 4 Nov 2000 10:09:55 +0000 (10:09 +0000)
nothing to do with generating code, and "gencode.h" isn't included by
all "pcap-XXX.c" modules, whilst "pcap-int.h" is.

gencode.h
pcap-int.h

index d1adf68435f4f5ad6b1afe6c0645804f82993675..a327a4fb31fe30167eacb5ac5bcb7a6a5d9c1da3 100644 (file)
--- a/gencode.h
+++ b/gencode.h
@@ -18,7 +18,7 @@
  * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  *
- * @(#) $Header: /tcpdump/master/libpcap/gencode.h,v 1.46 2000-10-28 10:18:40 guy Exp $ (LBL)
+ * @(#) $Header: /tcpdump/master/libpcap/gencode.h,v 1.47 2000-11-04 10:09:55 guy Exp $ (LBL)
  */
 
 /* Address qualifiers. */
@@ -193,7 +193,6 @@ void finish_parse(struct block *);
 char *sdup(const char *);
 
 struct bpf_insn *icode_to_fcode(struct block *, int *);
-int install_bpf_program(pcap_t *, struct bpf_program *);
 int pcap_parse(void);
 void lex_init(char *);
 void lex_cleanup(void);
index f5344d4634eeeea27a426e2dcc0544b5c037ad1e..25b7aa83fcc10b17e800f1827a3e7073ace2d713 100644 (file)
@@ -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-int.h,v 1.29 2000-10-25 07:46:49 guy Exp $ (LBL)
+ * @(#) $Header: /tcpdump/master/libpcap/pcap-int.h,v 1.30 2000-11-04 10:09:55 guy Exp $ (LBL)
  */
 
 #ifndef pcap_int_h
@@ -194,6 +194,8 @@ int pcap_read(pcap_t *, int cnt, pcap_handler, u_char *);
 /* XXX */
 extern int pcap_fddipad;
 
+int    install_bpf_program(pcap_t *, struct bpf_program *);
+
 #ifdef __cplusplus
 }
 #endif