e6fc392521
lot of improvements in nse scripting engine and in ipv6 support Full changelog: http://nmap.org/changelog.html Help and ok sthen@ and dcoppa@
48 lines
1.7 KiB
Plaintext
48 lines
1.7 KiB
Plaintext
--- tcpip.cc.orig Wed Oct 31 18:00:55 2012
|
|
+++ tcpip.cc Fri Nov 30 12:41:48 2012
|
|
@@ -99,7 +99,7 @@
|
|
|
|
#include "nbase.h"
|
|
#include "portreasons.h"
|
|
-#include <dnet.h>
|
|
+#include "dnet.h"
|
|
#include "tcpip.h"
|
|
#include "NmapOps.h"
|
|
#include "Target.h"
|
|
@@ -228,7 +228,7 @@ void PacketTrace::traceArp(pdirection pdir, const u8 *
|
|
|
|
log_write(LOG_STDOUT | LOG_NORMAL, "%s (%.4fs) ARP %s\n",
|
|
(pdir == SENT) ? "SENT" : "RCVD",
|
|
- o.TimeSinceStart(&tv), arpdesc);
|
|
+ o.TimeSinceStart((const bpf_timeval*)&tv), arpdesc);
|
|
|
|
return;
|
|
}
|
|
@@ -303,7 +303,7 @@ void PacketTrace::traceND(pdirection pdir, const u8 *f
|
|
inet_ntop(AF_INET6, &ip6->ip6_dst, dst, sizeof(dst));
|
|
log_write(LOG_STDOUT | LOG_NORMAL, "%s (%.4fs) %s %s > %s %s\n",
|
|
(pdir == SENT) ? "SENT" : "RCVD",
|
|
- o.TimeSinceStart(&tv), label, src, dst, desc);
|
|
+ o.TimeSinceStart((const bpf_timeval*)&tv), label, src, dst, desc);
|
|
|
|
return;
|
|
}
|
|
@@ -359,7 +359,7 @@ void PacketTrace::trace(pdirection pdir, const u8 *pac
|
|
|
|
log_write(LOG_STDOUT | LOG_NORMAL, "%s (%.4fs) %s\n",
|
|
(pdir == SENT) ? "SENT" : "RCVD",
|
|
- o.TimeSinceStart(&tv), nmap_format_ippacket(packet, len));
|
|
+ o.TimeSinceStart((const bpf_timeval*)&tv), nmap_format_ippacket(packet, len));
|
|
|
|
return;
|
|
}
|
|
@@ -425,7 +425,7 @@ void PacketTrace::traceConnect(u8 proto, const struct
|
|
|
|
log_write(LOG_STDOUT | LOG_NORMAL,
|
|
"CONN (%.4fs) %s localhost > %s:%d => %s\n",
|
|
- o.TimeSinceStart(&tv),
|
|
+ o.TimeSinceStart((const bpf_timeval*)&tv),
|
|
(proto == IPPROTO_TCP) ? "TCP" : "UDP", targetipstr,
|
|
targetport, errbuf);
|
|
}
|