1 diff -NurpP --minimal snort-2.6.1.3.a/src/detection-plugins/sp_react.c snort-2.6.1.3.b/src/detection-plugins/sp_react.c
2 --- snort-2.6.1.3.a/src/detection-plugins/sp_react.c 2007-03-09 10:08:23.000000000 +0100
3 +++ snort-2.6.1.3.b/src/detection-plugins/sp_react.c 2007-03-09 10:40:03.000000000 +0100
13 diff -NurpP --minimal snort-2.6.1.3.a/src/detection-plugins/sp_respond.c snort-2.6.1.3.b/src/detection-plugins/sp_respond.c
14 --- snort-2.6.1.3.a/src/detection-plugins/sp_respond.c 2007-03-09 10:08:23.000000000 +0100
15 +++ snort-2.6.1.3.b/src/detection-plugins/sp_respond.c 2007-03-09 10:40:37.000000000 +0100
19 #if defined(ENABLE_RESPONSE) && !defined(ENABLE_RESPONSE2)
25 diff -NurpP --minimal snort-2.6.1.3.a/src/inline.c snort-2.6.1.3.b/src/inline.c
26 --- snort-2.6.1.3.a/src/inline.c 2007-03-09 10:08:23.000000000 +0100
27 +++ snort-2.6.1.3.b/src/inline.c 2007-03-09 10:41:19.000000000 +0100
37 --- aaa/configure.in.orig 2008-07-18 20:42:29.000000000 +0000
38 +++ aaa/configure.in 2008-09-04 13:04:35.026969217 +0000
39 @@ -1149,21 +1149,21 @@
40 if test -n "$with_libnet_includes" -a "$with_libnet_includes" != "no"; then
41 libnet_dir="${with_libnet_includes}"
43 - libnet_dir="/usr/include /usr/local/include /sw/include"
44 + libnet_dir="/usr/include /usr/local/include /sw/include /usr/include/libnet1"
46 - AC_MSG_CHECKING("for libnet.h version 1.0.x")
47 + AC_MSG_CHECKING("for libnet1.h version 1.0.x")
48 for i in $libnet_dir; do
49 - if test -r "$i/libnet.h"; then
50 + if test -r "$i/libnet1.h"; then
55 if test "$LIBNET_INC_DIR" != ""; then
56 - if eval "grep LIBNET_VERSION $LIBNET_INC_DIR/libnet.h | grep -v 1.0 >/dev/null"; then
57 - FAIL_MESSAGE("libnet 1.0.x (libnet.h)", $LIBNET_INC_DIR)
58 + if eval "grep LIBNET_VERSION $LIBNET_INC_DIR/libnet1.h | grep -v 1.0 >/dev/null"; then
59 + FAIL_MESSAGE("libnet 1.0.x (libnet1.h)", $LIBNET_INC_DIR)
61 - CFLAGS="${CFLAGS} `libnet-config --defines` `libnet-config --cflags`"
62 - LIBS="${LIBS} `libnet-config --libs`"
63 + CFLAGS="${CFLAGS} `libnet1-config --defines` `libnet1-config --cflags`"
64 + LIBS="${LIBS} `libnet1-config --libs`"
65 CPPFLAGS="${CPPFLAGS} -I${LIBNET_INC_DIR}"
68 @@ -1196,13 +1196,13 @@
72 - if test `libnet-config --cflags | wc -c` = "1"; then
73 + if test `libnet1-config --cflags | wc -c` = "1"; then
74 CPPFLAGS="${CPPFLAGS} -I/usr/local/include -I/sw/include"
75 LIBNET_CONFIG_BROKEN_CFLAGS="yes"
78 - if test `libnet-config --libs | wc -c` = "1"; then
79 - AC_MSG_WARN(libnet-config --libs is broken on your system. If you)
80 + if test `libnet1-config --libs | wc -c` = "1"; then
81 + AC_MSG_WARN(libnet1-config --libs is broken on your system. If you)
82 AC_MSG_WARN(are using a precompiled package please notify the)
83 AC_MSG_WARN(maintainer.)
84 LDFLAGS="${LDFLAGS} -L/usr/local/lib -L/sw/lib"
89 - AC_CHECK_HEADERS(libnet.h,, LNET="no")
90 + AC_CHECK_HEADERS(libnet1.h,, LNET="no")
91 if test "x$LNET" = "xno"; then
93 echo " ERROR! Libnet header not found, go get it from"
94 @@ -1233,28 +1233,28 @@
97 for i in $libnet_dir; do
98 - if test -r "$i/libnet.h"; then
99 + if test -r "$i/libnet1.h"; then
104 if test "x$LIBNET_INC_DIR" != "x"; then
105 - if eval "grep LIBNET_VERSION $LIBNET_INC_DIR/libnet.h | grep -v 1.0.2a >/dev/null"; then
106 + if eval "grep LIBNET_VERSION $LIBNET_INC_DIR/libnet1.h | grep -v 1.0.2a >/dev/null"; then
109 echo " ERROR! Snort with --enable-flexresp will *only* work with"
110 echo " libnet version 1.0.2a, go get it from"
111 echo " http://www.packetfactory.net/projects/libnet/"
112 - FAIL_MESSAGE("libnet 1.0.2a (libnet.h)", $LIBNET_INC_DIR)
113 + FAIL_MESSAGE("libnet 1.0.2a (libnet1.h)", $LIBNET_INC_DIR)
118 - FAIL_MESSAGE("libnet 1.0.2a (libnet.h)", $libnet_dir)
119 + FAIL_MESSAGE("libnet 1.0.2a (libnet1.h)", $libnet_dir)
123 - AC_CHECK_LIB(net, libnet_build_ip,, LNET="no")
124 + AC_CHECK_LIB(net1, libnet_build_ip,, LNET="no")
125 if test "x$LNET" = "xno"; then
127 echo " ERROR! Libnet library not found, go get it from"
128 @@ -1305,8 +1305,8 @@
129 [ --enable-react Intercept and terminate offending HTTP accesses],
130 enable_react="$enableval", enable_react="no")
131 if test "x$enable_react" = "xyes"; then
132 - CPPFLAGS="${CPPFLAGS} -DENABLE_REACT `libnet-config --defines --cflags`"
133 - LDFLAGS="${LDFLAGS} `libnet-config --libs`"
134 + CPPFLAGS="${CPPFLAGS} -DENABLE_REACT `libnet1-config --defines --cflags`"
135 + LDFLAGS="${LDFLAGS} `libnet1-config --libs`"
138 if test "x$enable_react" != "xno" -a "x$enable_react" = "xyes"; then
139 @@ -1317,13 +1317,13 @@
143 - if test `libnet-config --cflags | wc -c` = "1"; then
144 + if test `libnet1-config --cflags | wc -c` = "1"; then
145 CPPFLAGS="${CPPFLAGS} -I/usr/local/include -I/sw/include"
146 LIBNET_CONFIG_BROKEN_CFLAGS="yes"
149 - if test `libnet-config --libs | wc -c` = "1"; then
150 - AC_MSG_WARN(libnet-config --libs is broken on your system. If you)
151 + if test `libnet1-config --libs | wc -c` = "1"; then
152 + AC_MSG_WARN(libnet1-config --libs is broken on your system. If you)
153 AC_MSG_WARN(are using a precompiled package please notify the)
154 AC_MSG_WARN(maintainer.)
155 LDFLAGS="${LDFLAGS} -L/usr/local/lib -L/sw/lib"
156 @@ -1331,7 +1331,7 @@
160 - AC_CHECK_HEADERS(libnet.h,, LNET="no")
161 + AC_CHECK_HEADERS(libnet1.h,, LNET="no")
162 if test "x$LNET" = "xno"; then
164 echo " ERROR! Libnet header not found, go get it from"
165 @@ -1354,28 +1354,28 @@
168 for i in $libnet_dir; do
169 - if test -r "$i/libnet.h"; then
170 + if test -r "$i/libnet1.h"; then
175 if test "x$LIBNET_INC_DIR" != "x"; then
176 - if eval "grep LIBNET_VERSION $LIBNET_INC_DIR/libnet.h | grep -v 1.0.2a >/dev/null"; then
177 + if eval "grep LIBNET_VERSION $LIBNET_INC_DIR/libnet1.h | grep -v 1.0.2a >/dev/null"; then
180 echo " ERROR! Snort with --enable-react will *only* work with"
181 echo " libnet version 1.0.2a, go get it from"
182 echo " http://www.packetfactory.net/projects/libnet/"
183 - FAIL_MESSAGE("libnet 1.0.2a (libnet.h)", $LIBNET_INC_DIR)
184 + FAIL_MESSAGE("libnet 1.0.2a (libnet1.h)", $LIBNET_INC_DIR)
189 - FAIL_MESSAGE("libnet 1.0.2a (libnet.h)", $libnet_dir)
190 + FAIL_MESSAGE("libnet 1.0.2a (libnet1.h)", $libnet_dir)
194 - AC_CHECK_LIB(net, libnet_build_ip,, LNET="no")
195 + AC_CHECK_LIB(net1, libnet_build_ip,, LNET="no")
196 if test "x$LNET" = "xno"; then
198 echo " ERROR! Libnet library not found, go get it from"