Index: contrib/pf/pflogd/pflogd.c =================================================================== RCS file: /usr/store/mlaier/fcvs/src/contrib/pf/pflogd/pflogd.c,v retrieving revision 1.12 diff -u -r1.12 pflogd.c --- contrib/pf/pflogd/pflogd.c 3 Jul 2007 12:30:02 -0000 1.12 +++ contrib/pf/pflogd/pflogd.c 1 Oct 2007 23:23:54 -0000 @@ -37,6 +37,9 @@ #include #include #include +#ifdef __FreeBSD__ +#include /* BIOCLOCK */ +#endif #include #include #include Index: lib/libpcap/Makefile =================================================================== RCS file: /usr/store/mlaier/fcvs/src/lib/libpcap/Makefile,v retrieving revision 1.39 diff -u -r1.39 Makefile --- lib/libpcap/Makefile 21 May 2007 02:49:06 -0000 1.39 +++ lib/libpcap/Makefile 1 Oct 2007 22:25:51 -0000 @@ -10,7 +10,7 @@ pcap.c inet.c fad-getad.c gencode.c optimize.c nametoaddr.c \ etherent.c savefile.c bpf_filter.c bpf_image.c bpf_dump.c \ scanner.l version.c -INCS= pcap.h pcap-int.h pcap-namedb.h +INCS= pcap.h pcap-int.h pcap-namedb.h pcap-bpf.h MAN= pcap.3 CLEANFILES=tokdefs.h version.h version.c @@ -22,6 +22,9 @@ .if ${MK_INET6_SUPPORT} != "no" CFLAGS+=-DINET6 .endif +.if ${MK_PF} != "no" +CFLAGS+=-DHAVE_NET_PFVAR_H +.endif SHLIB_MAJOR=5 Index: lib/libpcap/config.h =================================================================== RCS file: /usr/store/mlaier/fcvs/src/lib/libpcap/config.h,v retrieving revision 1.5 diff -u -r1.5 config.h --- lib/libpcap/config.h 29 May 2005 18:12:46 -0000 1.5 +++ lib/libpcap/config.h 30 Sep 2007 21:14:36 -0000 @@ -14,9 +14,18 @@ /* Enable optimizer debugging */ /* #undef BDEBUG */ +/* define if you have a cloning BPF device */ +/* #undef HAVE_CLONING_BPF */ + /* define if you have the DAG API */ /* #undef HAVE_DAG_API */ +/* define if you have dag_get_erf_types() */ +/* #undef HAVE_DAG_GET_ERF_TYPES */ + +/* define if you have streams capable DAG API */ +/* #undef HAVE_DAG_STREAMS_API */ + /* Define to 1 if you have the declaration of `ether_hostton', and to 0 if you don't. */ #define HAVE_DECL_ETHER_HOSTTON 1 @@ -27,8 +36,8 @@ /* Define to 1 if you have the `ether_hostton' function. */ #define HAVE_ETHER_HOSTTON 1 -/* on HP-UX 10.20 */ -/* #undef HAVE_HPUX10_20 */ +/* on HP-UX 10.20 or later */ +/* #undef HAVE_HPUX10_20_OR_LATER */ /* on HP-UX 9.x */ /* #undef HAVE_HPUX9 */ @@ -51,12 +60,22 @@ /* Define to 1 if you have the header file. */ #define HAVE_NETINET_IF_ETHER_H 1 +/* Define to 1 if you have the header file. */ +/* See Makefile */ +/* #undef HAVE_NET_PFVAR_H */ + /* if there's an os_proto.h */ /* #undef HAVE_OS_PROTO_H */ +/* Define to 1 if you have the header file. */ +#define HAVE_PATHS_H 1 + /* define if you have a /proc/net/dev */ /* #undef HAVE_PROC_NET_DEV */ +/* define if you have a Septel API */ +/* #undef HAVE_SEPTEL_API */ + /* Define to 1 if you have the `snprintf' function. */ #define HAVE_SNPRINTF 1 @@ -87,6 +106,9 @@ /* Define to 1 if you have the `strlcpy' function. */ #define HAVE_STRLCPY 1 +/* Define to 1 if the system has the type `struct ether_addr'. */ +/* #undef HAVE_STRUCT_ETHER_ADDR */ + /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_BUFMOD_H */ Index: usr.sbin/tcpdump/tcpdump/Makefile =================================================================== RCS file: /usr/store/mlaier/fcvs/src/usr.sbin/tcpdump/tcpdump/Makefile,v retrieving revision 1.45 diff -u -r1.45 Makefile --- usr.sbin/tcpdump/tcpdump/Makefile 4 Sep 2006 20:27:05 -0000 1.45 +++ usr.sbin/tcpdump/tcpdump/Makefile 30 Sep 2007 21:14:36 -0000 @@ -6,31 +6,32 @@ .PATH: ${TCPDUMP_DISTDIR} PROG= tcpdump -SRCS= addrtoname.c cpack.c gmpls.c gmt2local.c ipproto.c \ - machdep.c nlpid.c l2vpn.c oui.c parsenfsfh.c \ - print-802_11.c print-ah.c print-aodv.c print-ap1394.c \ - print-arcnet.c print-arp.c print-ascii.c print-atalk.c \ - print-atm.c print-bfd.c print-bgp.c \ - print-bootp.c print-beep.c print-cdp.c print-chdlc.c \ - print-cip.c print-cnfp.c print-dccp.c print-decnet.c print-domain.c \ - print-dvmrp.c print-eap.c print-egp.c print-eigrp.c \ - print-enc.c print-esp.c print-ether.c \ - print-fddi.c print-fr.c print-gre.c print-hsrp.c print-icmp.c \ - print-igmp.c print-igrp.c print-ip.c print-ipfc.c print-ipcomp.c \ + +SRCS = addrtoname.c af.c cpack.c gmpls.c oui.c gmt2local.c ipproto.c \ + nlpid.c l2vpn.c machdep.c parsenfsfh.c \ + print-802_11.c print-ap1394.c print-ah.c print-arcnet.c \ + print-aodv.c print-arp.c print-ascii.c print-atalk.c print-atm.c \ + print-beep.c print-bfd.c print-bgp.c print-bootp.c print-cdp.c \ + print-chdlc.c print-cip.c print-cnfp.c print-dccp.c print-decnet.c \ + print-domain.c print-dvmrp.c print-enc.c print-egp.c \ + print-eap.c print-eigrp.c\ + print-esp.c print-ether.c print-fddi.c print-fr.c \ + print-gre.c print-hsrp.c print-icmp.c print-igmp.c \ + print-igrp.c print-ip.c print-ipcomp.c print-ipfc.c \ print-ipx.c print-isakmp.c print-isoclns.c print-juniper.c print-krb.c \ print-l2tp.c print-lane.c print-ldp.c print-llc.c \ - print-lmp.c print-lspping.c \ - print-lwres.c print-msdp.c print-mobile.c print-mpls.c \ - print-netbios.c print-nfs.c print-ntp.c print-null.c \ - print-ospf.c print-pflog.c print-pgm.c print-pim.c \ - print-ppp.c print-pppoe.c print-pptp.c print-radius.c \ - print-raw.c print-rip.c print-rsvp.c print-rx.c print-sctp.c \ - print-sip.c print-sl.c print-sll.c print-slow.c print-smb.c \ - print-snmp.c print-stp.c print-sunatm.c print-sunrpc.c \ - print-symantec.c print-syslog.c print-tcp.c \ - print-telnet.c print-tftp.c print-timed.c print-token.c \ - print-udp.c print-vjc.c print-vrrp.c print-wb.c print-zephyr.c \ - setsignal.c smbutil.c tcpdump.c util.c version.c + print-lmp.c print-lspping.c \ + print-lwres.c print-mobile.c print-mpls.c print-msdp.c \ + print-nfs.c print-ntp.c print-null.c print-olsr.c print-ospf.c \ + print-pgm.c print-pim.c print-ppp.c print-pppoe.c \ + print-pptp.c print-radius.c print-raw.c print-rip.c \ + print-rsvp.c print-rx.c print-sctp.c print-sip.c print-sl.c print-sll.c \ + print-slow.c print-snmp.c print-stp.c print-sunatm.c print-sunrpc.c \ + print-symantec.c print-syslog.c print-tcp.c print-telnet.c print-tftp.c \ + print-timed.c print-token.c print-udp.c print-vjc.c print-vrrp.c \ + print-wb.c print-zephyr.c setsignal.c tcpdump.c util.c \ + print-smb.c smbutil.c \ + version.c CLEANFILES+= version.c CFLAGS+= -I${.CURDIR} -I${TCPDUMP_DISTDIR} @@ -38,8 +39,8 @@ CFLAGS+= -D_U_="__attribute__((unused))" .if ${MK_INET6_SUPPORT} != "no" -SRCS+= print-ip6.c print-ip6opts.c print-ripng.c print-icmp6.c \ - print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c print-mobility.c +SRCS+= print-ip6.c print-ip6opts.c print-mobility.c print-ripng.c \ + print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c CFLAGS+= -DINET6 .endif .if ${MACHINE_ARCH} != "i386" @@ -51,7 +52,13 @@ .if ${MK_OPENSSL} != "no" && !defined(RELEASE_CRUNCH) DPADD+= ${LIBCRYPTO} LDADD+= -lcrypto -CFLAGS+= -I${DESTDIR}/usr/include/openssl -DHAVE_LIBCRYPTO -DHAVE_RC5_H -DHAVE_CAST_H -DHAVE_OPENSSL_EVP_H +CFLAGS+= -I${DESTDIR}/usr/include/openssl +CFLAGS+= -DHAVE_LIBCRYPTO -DHAVE_RC5_H -DHAVE_CAST_H -DHAVE_OPENSSL_EVP_H +.endif + +.if ${MK_PF} != "no" +SRCS+= print-pflog.c +CFLAGS+= -DHAVE_NET_PFVAR_H .endif version.c: ${TCPDUMP_DISTDIR}/VERSION Index: usr.sbin/tcpdump/tcpdump/config.h =================================================================== RCS file: /usr/store/mlaier/fcvs/src/usr.sbin/tcpdump/tcpdump/config.h,v retrieving revision 1.7 diff -u -r1.7 config.h --- usr.sbin/tcpdump/tcpdump/config.h 11 Jul 2005 04:14:42 -0000 1.7 +++ usr.sbin/tcpdump/tcpdump/config.h 30 Sep 2007 21:14:36 -0000 @@ -10,6 +10,7 @@ /* #undef HAVE_BUGGY_CAST128 */ /* Define if you enable IPv6 support */ +/* See Makefile */ /* #undef INET6 */ /* Define if you enable support for the libsmi. */ @@ -24,9 +25,6 @@ /* define if your struct __res_state has the nsort member */ /* #undef HAVE_NEW_RES_STATE */ -/* define if defines PRI[doxu]64 macros */ -#define INTTYPES_H_DEFINES_FORMATS 1 - /* * define if struct ether_header.ether_dhost is a struct with ether_addr_octet */ @@ -113,17 +111,6 @@ /* AIX hack. */ /* #undef _SUN */ -/* Workaround for missing sized types */ -/* XXX this should move to the more standard uint*_t */ -/* #undef int8_t */ -/* #undef int16_t */ -/* #undef int32_t */ -/* #undef int64_t */ -/* #undef u_int8_t */ -/* #undef u_int16_t */ -/* #undef u_int32_t */ -/* #undef u_int64_t */ - /* Workaround for missing 64-bit formats */ /* #undef PRId64 */ /* #undef PRIo64 */ @@ -179,6 +166,7 @@ #define HAVE_INTTYPES_H 1 /* Define to 1 if you have the `crypto' library (-lcrypto). */ +/* See Makefile */ /* #undef HAVE_LIBCRYPTO */ /* Define to 1 if you have the `rpc' library (-lrpc). */ @@ -199,7 +187,12 @@ /* Define to 1 if you have the header file. */ #define HAVE_NETINET_IF_ETHER_H 1 +/* Define to 1 if you have the header file. */ +/* See Makefile */ +/* #undef HAVE_NET_PFVAR_H */ + /* Define to 1 if you have the header file. */ +/* See Makefile */ /* #undef HAVE_OPENSSL_EVP_H 1 */ /* Define to 1 if you have the `pcap_breakloop' function. */ @@ -268,6 +261,12 @@ /* Define to 1 if you have the `strsep' function. */ #define HAVE_STRSEP 1 +/* Define to 1 if the system has the type `struct ether_addr'. */ +/* #undef HAVE_STRUCT_ETHER_ADDR */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_SYS_BITYPES_H */ + /* Define to 1 if you have the header file. */ #define HAVE_SYS_STAT_H 1 @@ -310,19 +309,20 @@ /* Define as the return type of signal handlers (`int' or `void'). */ #define RETSIGTYPE void -/* The size of a `char', as computed by sizeof. */ +/* The size of `char', as computed by sizeof. */ #define SIZEOF_CHAR 1 -/* The size of a `int', as computed by sizeof. */ +/* The size of `int', as computed by sizeof. */ #define SIZEOF_INT 4 -/* The size of a `long', as computed by sizeof. */ +/* The size of `long', as computed by sizeof. */ +/* XXX: This is wrong, but possibly unused */ #define SIZEOF_LONG 4 -/* The size of a `long long', as computed by sizeof. */ +/* The size of `long long', as computed by sizeof. */ #define SIZEOF_LONG_LONG 8 -/* The size of a `short', as computed by sizeof. */ +/* The size of `short', as computed by sizeof. */ #define SIZEOF_SHORT 2 /* Define to 1 if you have the ANSI C header files. */ @@ -333,3 +333,27 @@ /* Define as token for inline if inlining supported */ #define inline inline + +/* Define to `short' if int16_t not defined. */ +/* #undef int16_t */ + +/* Define to `int' if int32_t not defined. */ +/* #undef int32_t */ + +/* Define to `long long' if int64_t not defined. */ +/* #undef int64_t */ + +/* Define to `signed char' if int8_t not defined. */ +/* #undef int8_t */ + +/* Define to `unsigned short' if u_int16_t not defined. */ +/* #undef u_int16_t */ + +/* Define to `unsigned int' if u_int32_t not defined. */ +/* #undef u_int32_t */ + +/* Define to `unsigned long long' if u_int64_t not defined. */ +/* #undef u_int64_t */ + +/* Define to `unsigned char' if u_int8_t not defined. */ +/* #undef u_int8_t */ Index: usr.sbin/wpa/l2_packet.c =================================================================== RCS file: /usr/store/mlaier/fcvs/src/usr.sbin/wpa/l2_packet.c,v retrieving revision 1.4 diff -u -r1.4 l2_packet.c --- usr.sbin/wpa/l2_packet.c 9 Jul 2007 15:57:10 -0000 1.4 +++ usr.sbin/wpa/l2_packet.c 1 Oct 2007 23:45:41 -0000 @@ -18,23 +18,24 @@ /* * FreeBSD-specific implementation. */ -#include -#include -#include -#include -#include - #include #include #include #include +#include #include #include #include #include #include +#include +#include +#include +#include +#include + #include "common.h" #include "eloop.h" #include "l2_packet.h"