Nmap Development mailing list archives

Re: Compile error on netbsd


From: David Fifield <david () bamsoftware com>
Date: Fri, 28 Aug 2009 10:38:44 -0600

On Fri, Aug 28, 2009 at 11:27:04AM -0400, Jay Fink wrote:
Finally had a chance to look into this some more; David was dead on;
the ifconf struct is different on NetBSD;  ifcu_buf  was changed to
void * during a core address type cull:

struct  ifconf {
        int     ifc_len;                /* size of associated buffer */
        union {
                void *  ifcu_buf;
                struct  ifreq *ifcu_req;
        } ifc_ifcu;

As a dirty trick I changed it back and it compiles but still does not
send back an iflist, I will work on a macro or something to replace it
but I'm not sure why it kicks back it can't find the information yet.

Note FreeBSD8 and Linux use the core address pointer.

I don't know what you mean by "core address." Does the attached patch
work? It just casts ifc_buf to a char pointer when we want to do
byte-level arithmetic. You should try it with unmodified header files.

David Fifield

Attachment: ifc_buf-char.diff
Description:


_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org

Current thread: