hello all,
so i see that nmap on openbsd has been discussed here before, as per the
archives. however, there are still some issues i'd like to get figured
out.
first, to start, i have pasted the 3 patches (bottom) required to
compile and run nmap on openbsd.
second, there seems to be a bug that is hit when during some root
code on 64bit archs, possibly in tcpip.cc. it seems that head.caplen
is always zero, hence *len (unsigned) becomes less than zero. so
the result is:
$ sudo nmap -O -P0 172.25.113.169
Starting nmap 3.75 ( http://www.insecure.org/nmap/ ) at 2004-10-20 14:32 EDT
Unable to realloc -15 bytes of mem
QUITTING!
ideas off the top of anyone's head?
thanks,
okan
--- nbase/configure.orig Sat Oct 16 01:03:33 2004
+++ nbase/configure Wed Oct 20 11:54:11 2004
@@ -3324,6 +3324,9 @@ cat >>conftest.$ac_ext <<_ACEOF
#if HAVE_SYS_TYPES_H
# include <sys/types.h>
# endif
+#if HAVE_NETINET_IN_H
+# include <netinet/in.h>
+#endif
#if HAVE_SYS_SOCKET_H
# include <sys/socket.h>
# endif
--- tcpip.cc.orig Mon Oct 18 12:59:15 2004
+++ tcpip.cc Wed Oct 20 11:54:12 2004
@@ -1649,7 +1649,8 @@ if (!pd) fatal("NULL packet device passe
gettimeofday(&tv_end, NULL);
*rcvdtime = tv_end;
#else
- *rcvdtime = head.ts;
+ rcvdtime->tv_sec = head.ts.tv_sec;
+ rcvdtime->tv_usec = head.ts.tv_usec;
assert(head.ts.tv_sec);
#endif
}
--- tcpip.h.orig Sun Aug 29 05:11:42 2004
+++ tcpip.h Wed Oct 20 11:54:12 2004
@@ -254,7 +254,7 @@ extern "C" {
#endif
#ifndef BSDFIX
-#if FREEBSD || BSDI || NETBSD || DEC
+#if FREEBSD || OPENBSD || BSDI || NETBSD || DEC
#define BSDFIX(x) x
#define BSDUFIX(x) x
#else
--
Okan Demirmen <okan_at_demirmen.com>
PGP-Key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xB3670934
PGP-Fingerprint: 226D B4AE 78A9 7F4E CD2B 1B44 C281 AF18 B367 0934
---------------------------------------------------------------------
For help using this (nmap-dev) mailing list, send a blank email to
nmap-dev-help@insecure.org . List archive: http://seclists.org
Received on Oct 20 2004