openbsd-ports/net/nmap/patches/patch-nping_ProbeMode_cc
giovanni 7cc1504616 Major update to 6.01
tests & ok benoit@, thanks
2012-07-16 07:39:31 +00:00

27 lines
1.0 KiB
Plaintext

$OpenBSD: patch-nping_ProbeMode_cc,v 1.2 2012/07/16 07:39:31 giovanni Exp $
--- nping/ProbeMode.cc.orig Thu Mar 1 07:53:35 2012
+++ nping/ProbeMode.cc Fri May 25 15:16:04 2012
@@ -129,9 +129,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;
}
@@ -1500,8 +1500,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;