Snort mailing list archives

Re: Libnet v1.1 vs libnet v1.0.2a


From: Dirk Geschke <dirk () geschke-online de>
Date: Tue, 22 Nov 2005 22:40:04 +0100

Hi Tudor,

Is it any way around the limitation for libnet v1.0.2a in building snort v
2.4.3 with flexresp ? The reason I am asking is that I am running in a
strange situation when I need syslog-ng with spoof capabilities which
requires libnet >= v1.1 but, on the same machine, snort requires libnet
v1.0.2a.

the problem is that the API of libnet changed completely between 1.0.2
ans 1.1 (and even with the 1.1-series are some incompatibilities).

But you can use both libraries separately, simple let the CPPFLAGS
point to the old 1.0.2a headers like

CPPFLAGS=-I/usr/local/libnet-1.0.2a/include ./configure ...

This should work well until the "make call" tries to link snort.
Simply copy this line and replace -lnet with the complete path
to libnet.a and link it statically. (You can also use dynamic
linking but then you have to compile int the library search path
to avoid linking against the newer library. This is a little bit
more complicated and will not have any advantages at all...)

Best regards

Dirk



-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Snort-users mailing list
Snort-users () lists sourceforge net
Go to this URL to change user options or unsubscribe:
https://lists.sourceforge.net/lists/listinfo/snort-users
Snort-users list archive:
http://www.geocrawler.com/redir-sf.php3?list=snort-users


Current thread: