From: guy Date: Sat, 4 Nov 2000 10:09:55 +0000 (+0000) Subject: Declare "install_bpf_program()" in "pcap-int.h", not "gencode.h"; it has X-Git-Tag: libpcap-0.6.1~40 X-Git-Url: https://git.tcpdump.org/libpcap/commitdiff_plain/ad7e091f5df7a3a0f70c4fbfd83c610004fe804c Declare "install_bpf_program()" in "pcap-int.h", not "gencode.h"; it has nothing to do with generating code, and "gencode.h" isn't included by all "pcap-XXX.c" modules, whilst "pcap-int.h" is. --- diff --git a/gencode.h b/gencode.h index d1adf684..a327a4fb 100644 --- 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); diff --git a/pcap-int.h b/pcap-int.h index f5344d46..25b7aa83 100644 --- a/pcap-int.h +++ b/pcap-int.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-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