aboutsummaryrefslogtreecommitdiff
path: root/lib/libpcap
diff options
context:
space:
mode:
authorBill Fenner <fenner@FreeBSD.org>2001-04-03 04:34:50 +0000
committerBill Fenner <fenner@FreeBSD.org>2001-04-03 04:34:50 +0000
commit1a92ad3d67d7bcbf0736766f1229e615345b148b (patch)
tree997a9a8cd717ece6032d3ada36612e94381ad424 /lib/libpcap
parent8e1481d1447b6957931c2223dd6860725050aa4e (diff)
downloadsrc-1a92ad3d67d7bcbf0736766f1229e615345b148b.tar.gz
src-1a92ad3d67d7bcbf0736766f1229e615345b148b.zip
Notes
Diffstat (limited to 'lib/libpcap')
-rw-r--r--lib/libpcap/Makefile14
-rw-r--r--lib/libpcap/config.h100
2 files changed, 106 insertions, 8 deletions
diff --git a/lib/libpcap/Makefile b/lib/libpcap/Makefile
index d4af1ac82986..5e5224773f70 100644
--- a/lib/libpcap/Makefile
+++ b/lib/libpcap/Makefile
@@ -3,15 +3,13 @@
LIB= pcap
SRCS= grammar.y tokdefs.h pcap-bpf.c \
- pcap.c inet.c gencode.c optimize.c nametoaddr.c \
- etherent.c savefile.c bpf_filter.c bpf_image.c \
- scanner.l version.c
+ pcap.c inet.c gencode.c optimize.c nametoaddr.c \
+ etherent.c savefile.c bpf_filter.c bpf_image.c bpf_dump.c \
+ scanner.l version.c
MAN= pcap.3
CLEANFILES=tokdefs.h version.c
-DEFS= -DHAVE_SYS_IOCCOM_H=1 -DHAVE_SYS_SOCKIO_H=1 \
- -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 \
- -DHAVE_SOCKADDR_SA_LEN=1 -DLBL_ALIGN=1
+DEFS= -DHAVE_CONFIG_H
.if !defined(NOINET6)
DEFS+= -DINET6
.endif
@@ -19,13 +17,13 @@ DEFS+= -DINET6
CFLAGS+=-I. -Dyylval=pcap_lval ${DEFS}
SHLIB_MAJOR=2
-SHLIB_MINOR=4
+SHLIB_MINOR=5
#
# Magic to grab sources out of src/contrib
#
PCAP_DISTDIR?=${.CURDIR}/../../contrib/libpcap
-CFLAGS+=-I${PCAP_DISTDIR} -I${PCAP_DISTDIR}/lbl
+CFLAGS+=-I${PCAP_DISTDIR} -I${PCAP_DISTDIR}/lbl -I${PCAP_DISTDIR}/bpf
.PATH: ${PCAP_DISTDIR}
.PATH: ${PCAP_DISTDIR}/bpf/net
diff --git a/lib/libpcap/config.h b/lib/libpcap/config.h
new file mode 100644
index 000000000000..729b4c54a08f
--- /dev/null
+++ b/lib/libpcap/config.h
@@ -0,0 +1,100 @@
+/* $FreeBSD$ */
+/* This is an edited copy of the config.h generated by configure. */
+
+/* config.h. Generated automatically by configure. */
+/* config.h.in. Generated automatically from configure.in by autoheader. */
+
+/* Define to empty if the keyword does not work. */
+/* #undef const */
+
+/* Define as __inline if that's what the C compiler calls it. */
+/* #undef inline */
+
+/* Define if you have the ether_hostton function. */
+#define HAVE_ETHER_HOSTTON 1
+
+/* Define if you have the freeifaddrs function. */
+#define HAVE_FREEIFADDRS 1
+
+/* Define if you have the strerror function. */
+#define HAVE_STRERROR 1
+
+/* Define if you have the strlcpy function. */
+#define HAVE_STRLCPY 1
+
+/* Define if you have the <ifaddrs.h> header file. */
+#define HAVE_IFADDRS_H 1
+
+/* Define if you have the <netinet/if_ether.h> header file. */
+#define HAVE_NETINET_IF_ETHER_H 1
+
+/* Define if you have the <netpacket/packet.h> header file. */
+/* #undef HAVE_NETPACKET_PACKET_H */
+
+/* Define if you have the <sys/bufmod.h> header file. */
+/* #undef HAVE_SYS_BUFMOD_H */
+
+/* Define if you have the <sys/dlpi_ext.h> header file. */
+/* #undef HAVE_SYS_DLPI_EXT_H */
+
+/* Define if you have the <sys/ioccom.h> header file. */
+#define HAVE_SYS_IOCCOM_H 1
+
+/* Define if you have the <sys/sockio.h> header file. */
+#define HAVE_SYS_SOCKIO_H 1
+
+/* needed on HP-UX */
+/* #undef _HPUX_SOURCE */
+
+/* define if your compiler has __attribute__ */
+#define HAVE___ATTRIBUTE__ 1
+
+/* if we have u_int8_t */
+/* #undef u_int8_t */
+
+/* if we have u_int16_t */
+/* #undef u_int16_t */
+
+/* if we have u_int32_t */
+/* #undef u_int32_t */
+
+/* do not use protochain */
+/* #undef NO_PROTOCHAIN */
+
+/* IPv6 */
+/* XXX Handled by Makefile, to handle NOINET6 */
+/* #define INET6 1 */
+
+/* define if you have a /dev/dlpi */
+/* #undef HAVE_DEV_DLPI */
+
+/* /dev/dlpi directory */
+/* #undef PCAP_DEV_PREFIX */
+
+/* define on AIX to get certain functions */
+/* #undef _SUN */
+
+/* on HP-UX 9.x */
+/* #undef HAVE_HPUX9 */
+
+/* on HP-UX 10.20 */
+/* #undef HAVE_HPUX10_20 */
+
+/* on sinix */
+/* #undef sinix */
+
+/* On solaris */
+/* #undef HAVE_SOLARIS */
+
+/* if there's an os_proto.h */
+/* #undef HAVE_OS_PROTO_H */
+
+/* if struct sockaddr has sa_len */
+#define HAVE_SOCKADDR_SA_LEN 1
+
+/* if ppa_info_t_dl_module_id exists */
+/* #undef HAVE_HP_PPA_INFO_T_DL_MODULE_ID_1 */
+
+/* if unaligned access fails */
+/* #undef LBL_ALIGN */
+