openbsd-ports/net/nmap/patches/patch-nping_ProbeMode_cc
giovanni e6fc392521 Update to 6.25
lot of improvements in nse scripting engine and in ipv6 support
Full changelog: http://nmap.org/changelog.html
Help and ok sthen@ and dcoppa@
2012-12-19 17:12:11 +00:00

27 lines
1.0 KiB
Plaintext

$OpenBSD: patch-nping_ProbeMode_cc,v 1.3 2012/12/19 17:12:11 giovanni Exp $
--- nping/ProbeMode.cc.orig Wed Oct 3 17:43:18 2012
+++ nping/ProbeMode.cc Fri Nov 30 12:41:48 2012
@@ -130,9 +130,9 @@ int ProbeMode::init_nsock(){
/* Set nsock trace level */
gettimeofday(&now, NULL);
if( o.getDebugging() == DBG_5)
- nsp_settrace(nsp, NULL, 1 , &now);
+ nsp_settrace(nsp, NULL, 1 , (const bpf_timeval*)&now);
else if( o.getDebugging() > DBG_5 )
- nsp_settrace(nsp, NULL, 10 , &now);
+ nsp_settrace(nsp, NULL, 10 , (const bpf_timeval*)&now);
/* Flag it as already inited so we don't do it again */
nsock_init=true;
}
@@ -1521,8 +1521,8 @@ void ProbeMode::probe_nping_event_handler(nsock_pool n
u16 *ethtype=NULL;
u8 buffer[512+1];
size_t link_offset=0;
- static struct timeval pcaptime;
- static struct timeval prevtime;
+ static struct bpf_timeval pcaptime;
+ static struct bpf_timeval prevtime;
NpingTarget *trg=NULL;
u16 *prt=NULL;
u8 proto=0;