[Snort-devel] incomplete libnet-detection for --enable-inline

William Metcalf William_Metcalf at ...2528...
Mon Apr 11 09:13:00 EDT 2005






Yeah the libnet check was just plain sloppy on our part.  I think libnet is
going away in the next version of the reject code, but here is a patch that
should work.   I just stole the code from --enable-flexresp, so your
--with-libnet stuff should work now.  Back to libdnet programming........

(See attached file: entropy.diff)

Regards,

Will






                                                                       
             Falko Wendt                                               
             <fwendt at ...2746...                                         
             alm.net>                                                   To
             Sent by:                  snort-devel at lists.sourceforge.net
             snort-devel-admin                                          cc
             @lists.sourceforg                                         
             e.net                                                 Subject
                                       [Snort-devel] incomplete        
                                       libnet-detection for            
             04/08/2005 09:36          --enable-inline                 
             AM                                                        
                                                                       
                                                                       
                                                                       
                                                                       
                                                                       




Hi,

when compiling snort-2.3.2 i ran into a problem where configure would
not detect libnet-1.0.2a which i had installed to
/usr/local/libnet-1.0.2a even though i used --with-libnet-includes and
--with-libnet-libraries.
Looking at configure.in i saw that the checks for libnet which are used
when --enable-inline is given ignore --with-libnet-includes and only
search in /usr/include and /usr/local/include.
The code for --enable-flexresp on the other hand does extensive checks
for libnet and correctly detects it in non-standard locations.
Perhaps someone more knowledgeable could look at configure.in and
add the necessary checks to the code for --enable-inline.
A simple fix which worked for me follows:

===start============================================================================

--- configure.in        2005-03-10 22:35:43.000000000 +0100
+++ ../modified-snort-2.3.2/configure.in        2005-04-07
01:21:33.000000000 +0200
@@ -687,7 +687,11 @@

LIBNET_INC_DIR=""
AC_MSG_CHECKING("for libnet.h version 1.0.x")
-        libnet_dir="/usr/include /usr/local/include"
+        if test -n "$with_libnet_includes" -a "$with_libnet_includes"
!= "no"; then
+               libnet_dir="${with_libnet_includes}"
+        else
+               libnet_dir="/usr/include /usr/local/include"
+        fi
for i in $libnet_dir; do
     if test -r $i/libnet.h; then
         LIBNET_INC_DIR=$i
===end==============================================================================


Ciao, Falko


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Snort-devel mailing list
Snort-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/snort-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.snort.org/pipermail/snort-devel/attachments/20050411/4d07fac6/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: graycol.gif
Type: image/gif
Size: 105 bytes
Desc: not available
URL: <https://lists.snort.org/pipermail/snort-devel/attachments/20050411/4d07fac6/attachment.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pic27157.gif
Type: image/gif
Size: 1255 bytes
Desc: not available
URL: <https://lists.snort.org/pipermail/snort-devel/attachments/20050411/4d07fac6/attachment-0001.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ecblank.gif
Type: image/gif
Size: 45 bytes
Desc: not available
URL: <https://lists.snort.org/pipermail/snort-devel/attachments/20050411/4d07fac6/attachment-0002.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: entropy.diff
Type: application/octet-stream
Size: 4047 bytes
Desc: not available
URL: <https://lists.snort.org/pipermail/snort-devel/attachments/20050411/4d07fac6/attachment.obj>


More information about the Snort-devel mailing list