Home page logo

nmap-dev logo Nmap Development mailing list archives

Re: [nmap-svn] r23442 - nmap-exp/weilin/nmap-netlink nmap-exp/weilin/nmap-netlink/libnetutil nping
From: David Fifield <david () bamsoftware com>
Date: Mon, 30 May 2011 10:20:31 -0700

On Mon, May 30, 2011 at 10:16:53AM -0700, David Fifield wrote:
On Mon, May 30, 2011 at 03:09:33PM +0200, Henri Doreau wrote:
2011/5/30  <commit-mailer () insecure org>:
Author: david
Date: Sun May 29 19:35:54 2011
New Revision: 23442

Quick-and-dirty configuration needed to link against libnetlink.


Modified: nping/configure
--- nping/configure     (original)
+++ nping/configure     Sun May 29 19:35:54 2011
@@ -5332,6 +5332,8 @@

+CPPFLAGS="$CPPFLAGS -I\$(top_srcdir)/../libnetlink/include"
+LIBS="\$(top_srcdir)/../libnetlink/lib/libnetlink.a \$(top_srcdir)/../libnetlink/lib/libutil.a -ldl"

 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr{} has sa_len member" >&5
 $as_echo_n "checking if sockaddr{} has sa_len member... " >&6; }

Modified: nping/configure.ac
--- nping/configure.ac  (original)
+++ nping/configure.ac  Sun May 29 19:35:54 2011
@@ -325,6 +325,8 @@

+CPPFLAGS="$CPPFLAGS -I\$(top_srcdir)/../libnetlink/include"
+LIBS="\$(top_srcdir)/../libnetlink/lib/libnetlink.a \$(top_srcdir)/../libnetlink/lib/libutil.a -ldl"

 dnl This test is from the configure.in of Unix Network Programming second
 dnl edition example code by W. Richard Stevens


it looks like this revision breaks compilation:

g++: error: ./../libnetlink/lib/libnetlink.a: No such file or directory
g++: error: ./../libnetlink/lib/libutil.a: No such file or directory

It's still missing the code to build the libnetlink directory. Just cd
libnetlink && make. Or you can add it to the build process, but I just
wanted it to build so I could test it.

I don't understand the reason of linking nping against libnetlink like
this. Am I missing something?

Weilin is testing an alternative method of getting the routing table
using libnetlink.

Oops, I see what you mean now. I forgot that nping is an external in
Weilin's branch, so my commit modified the trunk version. I'll fix it.

David Fifield
Sent through the nmap-dev mailing list
Archived at http://seclists.org/nmap-dev/

  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]