diff -urN snort_inline-2.6.1.5/configure snort_inline-2.6.1.5-ubuntu/configure --- snort_inline-2.6.1.5/configure 2007-06-07 02:46:30.000000000 +0700 +++ snort_inline-2.6.1.5-ubuntu/configure 2009-12-18 18:58:03.000000000 +0700 @@ -24446,7 +24446,7 @@ DNET="" -for ac_header in dnet.h +for ac_header in dumbnet.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if eval "test \"\${$as_ac_Header+set}\" = set"; then @@ -24607,13 +24607,13 @@ DNET="" -echo "$as_me:$LINENO: checking for eth_set in -ldnet" >&5 -echo $ECHO_N "checking for eth_set in -ldnet... $ECHO_C" >&6 +echo "$as_me:$LINENO: checking for eth_set in -ldumbnet" >&5 +echo $ECHO_N "checking for eth_set in -ldumbnet... $ECHO_C" >&6 if test "${ac_cv_lib_dnet_eth_set+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS -LIBS="-ldnet $LIBS" +LIBS="-ldumbnet $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF @@ -24676,7 +24676,7 @@ #define HAVE_LIBDNET 1 _ACEOF - LIBS="-ldnet $LIBS" + LIBS="-ldumbnet $LIBS" else DNET="no" @@ -25056,7 +25056,7 @@ DNET="" -for ac_header in dnet.h +for ac_header in dumbnet.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if eval "test \"\${$as_ac_Header+set}\" = set"; then @@ -25217,13 +25217,13 @@ DNET="" -echo "$as_me:$LINENO: checking for eth_set in -ldnet" >&5 -echo $ECHO_N "checking for eth_set in -ldnet... $ECHO_C" >&6 +echo "$as_me:$LINENO: checking for eth_set in -ldumbnet" >&5 +echo $ECHO_N "checking for eth_set in -ldumbnet... $ECHO_C" >&6 if test "${ac_cv_lib_dnet_eth_set+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS -LIBS="-ldnet $LIBS" +LIBS="-ldumbnet $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF @@ -25286,7 +25286,7 @@ #define HAVE_LIBDNET 1 _ACEOF - LIBS="-ldnet $LIBS" + LIBS="-ldumbnet $LIBS" else DNET="no" diff -urN snort_inline-2.6.1.5/configure.in snort_inline-2.6.1.5-ubuntu/configure.in --- snort_inline-2.6.1.5/configure.in 2007-05-15 02:43:41.000000000 +0700 +++ snort_inline-2.6.1.5-ubuntu/configure.in 2009-12-18 18:55:20.000000000 +0700 @@ -842,7 +842,7 @@ fi DNET="" - AC_CHECK_HEADERS(dnet.h,, DNET="no") + AC_CHECK_HEADERS(dumbnet.h,, DNET="no") if test "$DNET" = "no"; then echo echo " ERROR! Libdnet header not found, go get it from" @@ -852,7 +852,7 @@ fi DNET="" - AC_CHECK_LIB(dnet, eth_set,, DNET="no") + AC_CHECK_LIB(dumbnet, eth_set,, DNET="no") if test "$DNET" = "no"; then echo echo " ERROR! Libdnet header not found, go get it from" @@ -962,7 +962,7 @@ fi DNET="" - AC_CHECK_HEADERS(dnet.h,, DNET="no") + AC_CHECK_HEADERS(dumbnet.h,, DNET="no") if test "$DNET" = "no"; then echo echo " ERROR! Libdnet header not found, go get it from" @@ -972,7 +972,7 @@ fi DNET="" - AC_CHECK_LIB(dnet, eth_set,, DNET="no") + AC_CHECK_LIB(dumbnet, eth_set,, DNET="no") if test "$DNET" = "no"; then echo echo " ERROR! Libdnet header not found, go get it from" diff -urN snort_inline-2.6.1.5/src/inline.c snort_inline-2.6.1.5-ubuntu/src/inline.c --- snort_inline-2.6.1.5/src/inline.c 2007-04-22 23:02:37.000000000 +0700 +++ snort_inline-2.6.1.5-ubuntu/src/inline.c 2009-12-18 19:02:51.000000000 +0700 @@ -20,7 +20,7 @@ #include #include #include -#include +#include #include "snort.h" #include "decode.h" diff -urN snort_inline-2.6.1.5/src/preprocessors/flow/portscan/server_stats.c snort_inline-2.6.1.5-ubuntu/src/preprocessors/flow/portscan/server_stats.c --- snort_inline-2.6.1.5/src/preprocessors/flow/portscan/server_stats.c 2007-01-17 05:50:09.000000000 +0700 +++ snort_inline-2.6.1.5-ubuntu/src/preprocessors/flow/portscan/server_stats.c 2009-12-18 19:01:19.000000000 +0700 @@ -325,7 +325,7 @@ /* open this description, create it if necessary, always wait on * sync to disk w/ every write, only write */ - fd = open(filename, O_CREAT|O_TRUNC|O_SYNC|O_WRONLY); + fd = open(filename, O_CREAT|O_TRUNC|O_SYNC|O_WRONLY, S_IRUSR|S_IWUSR); if(fd < 0) {