Changeset 1128
- Timestamp:
- 02/18/07 11:53:30 (2 years ago)
- Files:
-
- honeytrap/trunk/configure (modified) (13 diffs)
- honeytrap/trunk/configure.in (modified) (4 diffs)
- honeytrap/trunk/src/ctrl.c (modified) (1 diff)
- honeytrap/trunk/src/honeytrap.h (modified) (2 diffs)
- honeytrap/trunk/src/ipqmon.h (modified) (1 diff)
- honeytrap/trunk/src/pcapmon.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
honeytrap/trunk/configure
r1127 r1128 1 1 #! /bin/sh 2 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.59 for honeytrap 0.6. 4.3 # Generated by GNU Autoconf 2.59 for honeytrap 0.6.3. 4 4 # 5 5 # Report bugs to <tillmann.werner@gmx.de>. … … 424 424 PACKAGE_NAME='honeytrap' 425 425 PACKAGE_TARNAME='honeytrap' 426 PACKAGE_VERSION='0.6. 4'427 PACKAGE_STRING='honeytrap 0.6. 4'426 PACKAGE_VERSION='0.6.3' 427 PACKAGE_STRING='honeytrap 0.6.3' 428 428 PACKAGE_BUGREPORT='tillmann.werner@gmx.de' 429 429 … … 954 954 # This message is too long to be a string in the A/UX 3.1 sh. 955 955 cat <<_ACEOF 956 \`configure' configures honeytrap 0.6. 4to adapt to many kinds of systems.956 \`configure' configures honeytrap 0.6.3 to adapt to many kinds of systems. 957 957 958 958 Usage: $0 [OPTION]... [VAR=VALUE]... … … 1020 1020 if test -n "$ac_init_help"; then 1021 1021 case $ac_init_help in 1022 short | recursive ) echo "Configuration of honeytrap 0.6. 4:";;1022 short | recursive ) echo "Configuration of honeytrap 0.6.3:";; 1023 1023 esac 1024 1024 cat <<\_ACEOF … … 1173 1173 if $ac_init_version; then 1174 1174 cat <<\_ACEOF 1175 honeytrap configure 0.6. 41175 honeytrap configure 0.6.3 1176 1176 generated by GNU Autoconf 2.59 1177 1177 … … 1187 1187 running configure, to aid debugging if configure makes a mistake. 1188 1188 1189 It was created by honeytrap $as_me 0.6. 4, which was1189 It was created by honeytrap $as_me 0.6.3, which was 1190 1190 generated by GNU Autoconf 2.59. Invocation command line was 1191 1191 … … 1832 1832 # Define the identity of the package. 1833 1833 PACKAGE=honeytrap 1834 VERSION=0.6. 41834 VERSION=0.6.3 1835 1835 1836 1836 … … 20424 20424 _ACEOF 20425 20425 20426 LDFLAGS="${LDFLAGS} -undefined suppress" 20426 LDFLAGS="${LDFLAGS} -L/sw/lib" 20427 extra_incl=-I/sw/include 20427 20428 esac 20428 20429 … … 23003 23004 23004 23005 if test "$DLLIB" != "no"; then 23005 23006 echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5 23007 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6 23008 if test "${ac_cv_lib_dl_dlsym+set}" = set; then 23006 LIBS="$LIBS -ldl" 23007 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 23008 else 23009 23010 echo "$as_me:$LINENO: checking for dlsym in -lc" >&5 23011 echo $ECHO_N "checking for dlsym in -lc... $ECHO_C" >&6 23012 if test "${ac_cv_lib_c_dlsym+set}" = set; then 23009 23013 echo $ECHO_N "(cached) $ECHO_C" >&6 23010 23014 else 23011 23015 ac_check_lib_save_LIBS=$LIBS 23012 LIBS="-l dl$LIBS"23016 LIBS="-lc $LIBS" 23013 23017 cat >conftest.$ac_ext <<_ACEOF 23014 23018 /* confdefs.h. */ … … 23054 23058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23055 23059 (exit $ac_status); }; }; then 23056 ac_cv_lib_dl_dlsym=yes23057 else23058 echo "$as_me: failed program was:" >&523059 sed 's/^/| /' conftest.$ac_ext >&523060 23061 ac_cv_lib_dl_dlsym=no23062 fi23063 rm -f conftest.err conftest.$ac_objext \23064 conftest$ac_exeext conftest.$ac_ext23065 LIBS=$ac_check_lib_save_LIBS23066 fi23067 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&523068 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&623069 if test $ac_cv_lib_dl_dlsym = yes; then23070 cat >>confdefs.h <<_ACEOF23071 #define HAVE_LIBDL 123072 _ACEOF23073 23074 LIBS="-ldl $LIBS"23075 23076 else23077 DLLIB="no"23078 fi23079 23080 if test "$DLLIB" != "no"; then23081 LIBS="$LIBS -ldl"23082 else23083 23084 echo "$as_me:$LINENO: checking for dlsym in -lc" >&523085 echo $ECHO_N "checking for dlsym in -lc... $ECHO_C" >&623086 if test "${ac_cv_lib_c_dlsym+set}" = set; then23087 echo $ECHO_N "(cached) $ECHO_C" >&623088 else23089 ac_check_lib_save_LIBS=$LIBS23090 LIBS="-lc $LIBS"23091 cat >conftest.$ac_ext <<_ACEOF23092 /* confdefs.h. */23093 _ACEOF23094 cat confdefs.h >>conftest.$ac_ext23095 cat >>conftest.$ac_ext <<_ACEOF23096 /* end confdefs.h. */23097 23098 /* Override any gcc2 internal prototype to avoid an error. */23099 #ifdef __cplusplus23100 extern "C"23101 #endif23102 /* We use char because int might match the return type of a gcc223103 builtin and then its argument prototype would still apply. */23104 char dlsym ();23105 int23106 main ()23107 {23108 dlsym ();23109 ;23110 return 0;23111 }23112 _ACEOF23113 rm -f conftest.$ac_objext conftest$ac_exeext23114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&523115 (eval $ac_link) 2>conftest.er123116 ac_status=$?23117 grep -v '^ *+' conftest.er1 >conftest.err23118 rm -f conftest.er123119 cat conftest.err >&523120 echo "$as_me:$LINENO: \$? = $ac_status" >&523121 (exit $ac_status); } &&23122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'23123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&523124 (eval $ac_try) 2>&523125 ac_status=$?23126 echo "$as_me:$LINENO: \$? = $ac_status" >&523127 (exit $ac_status); }; } &&23128 { ac_try='test -s conftest$ac_exeext'23129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&523130 (eval $ac_try) 2>&523131 ac_status=$?23132 echo "$as_me:$LINENO: \$? = $ac_status" >&523133 (exit $ac_status); }; }; then23134 23060 ac_cv_lib_c_dlsym=yes 23135 23061 else … … 23156 23082 fi 23157 23083 23158 if test "$DLCLIB" = "no"; then 23159 echo 23160 echo " ERROR! programmatic interface to dynamic link loader" 23161 echo " not found. Cannot use dynamic plugin libraries." 23162 echo 23163 exit 1 23164 fi 23084 if test "$DLCLIB" = "no"; then 23085 echo 23086 echo " ERROR! programmatic interface to dynamic link loader" 23087 echo " not found. Cannot use dynamic plugin libraries." 23088 echo 23089 exit 1 23165 23090 fi 23166 23091 fi … … 24339 24264 cat >&5 <<_CSEOF 24340 24265 24341 This file was extended by honeytrap $as_me 0.6. 4, which was24266 This file was extended by honeytrap $as_me 0.6.3, which was 24342 24267 generated by GNU Autoconf 2.59. Invocation command line was 24343 24268 … … 24402 24327 cat >>$CONFIG_STATUS <<_ACEOF 24403 24328 ac_cs_version="\\ 24404 honeytrap config.status 0.6. 424329 honeytrap config.status 0.6.3 24405 24330 configured by $0, generated by GNU Autoconf 2.59, 24406 24331 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" honeytrap/trunk/configure.in
r1127 r1128 1 1 # $Id$ 2 2 AC_PREREQ(02.50) 3 AC_INIT([honeytrap], [0.6. 4], [tillmann.werner@gmx.de])3 AC_INIT([honeytrap], [0.6.3], [tillmann.werner@gmx.de]) 4 4 AM_CONFIG_HEADER(config.h) 5 AM_INIT_AUTOMAKE(honeytrap,0.6. 4)5 AM_INIT_AUTOMAKE(honeytrap,0.6.3) 6 6 7 7 # Since we get -O2 from configure defaults, which doesn't work in 64bit … … 126 126 AC_DEFINE(MACOS,,[Define if MACOS]) 127 127 AC_DEFINE(BROKEN_SIOCGIFMTU) 128 LDFLAGS="${LDFLAGS} -undefined suppress" 128 LDFLAGS="${LDFLAGS} -L/sw/lib" 129 extra_incl=-I/sw/include 129 130 esac 130 131 … … 371 372 AC_CHECK_LIB(dl, dlsym,, DLLIB="no") 372 373 if test "$DLLIB" != "no"; then 373 AC_CHECK_LIB(dl, dlsym,, DLLIB="no") 374 if test "$DLLIB" != "no"; then 375 LIBS="$LIBS -ldl" 374 LIBS="$LIBS -ldl" 375 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 376 376 else 377 AC_CHECK_LIB(c, dlsym,, DLCLIB="no") 378 if test "$DLCLIB" = "no"; then 379 echo 380 echo " ERROR! programmatic interface to dynamic link loader" 381 echo " not found. Cannot use dynamic plugin libraries." 382 echo 383 exit 1 384 fi 377 AC_CHECK_LIB(c, dlsym,, DLCLIB="no") 378 if test "$DLCLIB" = "no"; then 379 echo 380 echo " ERROR! programmatic interface to dynamic link loader" 381 echo " not found. Cannot use dynamic plugin libraries." 382 echo 383 exit 1 385 384 fi 386 385 fi … … 434 433 doc/Makefile 435 434 src/Makefile 436 src/modules/Makefile]) 435 src/modules/Makefile]) 437 436 438 437 AC_OUTPUT honeytrap/trunk/src/ctrl.c
r1127 r1128 21 21 22 22 #include "honeytrap.h" 23 #include "pcapmon.h" 23 24 #include "logging.h" 24 25 #include "ctrl.h" honeytrap/trunk/src/honeytrap.h
r1125 r1128 19 19 #include <grp.h> 20 20 #include <dlfcn.h> 21 #ifdef USE_PCAP_MON 22 # include <pcap.h> 23 #endif 21 22 /* 23 #include "pcapmon.h" 24 #include "ipqmon.h" 25 */ 24 26 25 27 #if HAVE_CONFIG_H … … 88 90 char old_cwd[1024]; 89 91 90 #ifdef USE_PCAP_MON91 char *bpf_filter_string;92 bpf_u_int32 mask;93 bpf_u_int32 net;94 95 pcap_t *packet_sniffer;96 u_char pcap_offset;97 #endif98 99 92 100 93 #endif honeytrap/trunk/src/ipqmon.h
r1116 r1128 11 11 */ 12 12 13 #ifdef USE_IPQ_MON 13 14 14 15 #ifndef __HONEYTRAP_IPQMON_H 15 16 #define __HONEYTRAP_IPQMON_H 1 16 17 #ifdef USE_IPQ_MON18 17 19 18 #include <libipq.h> honeytrap/trunk/src/pcapmon.h
r1081 r1128 16 16 #define __HONEYTRAP_PCAPMON_H 1 17 17 18 #include <pcap.h> 18 19 #include <netdb.h> 20 21 char *bpf_filter_string; 22 bpf_u_int32 mask; 23 bpf_u_int32 net; 24 25 pcap_t *packet_sniffer; 26 u_char pcap_offset; 19 27 20 28 int start_pcap_mon(void);
