35ac3b7309
full changelog available at http://nmap.org/changelog.html Nping needs a very current libpcap to work as root
22 lines
891 B
Plaintext
22 lines
891 B
Plaintext
$OpenBSD: patch-nsock_include_nsock_h,v 1.6 2011/03/28 09:01:24 giovanni Exp $
|
|
--- nsock/include/nsock.h.orig Fri Jan 21 01:04:51 2011
|
|
+++ nsock/include/nsock.h Wed Feb 2 13:12:14 2011
|
|
@@ -86,6 +86,8 @@
|
|
extern "C" {
|
|
#endif
|
|
|
|
+#include <pcap.h>
|
|
+
|
|
/* The read calls will generally return after reading at least this
|
|
* much data so that the caller can process it and so that the
|
|
* connection spewing data doesn't monopolize resources. The caller
|
|
@@ -588,7 +590,7 @@ nsock_event_id nsock_pcap_read_packet(nsock_pool nsp,
|
|
void nse_readpcap(nsock_event nsee,
|
|
const unsigned char **l2_data, size_t *l2_len,
|
|
const unsigned char **l3_data, size_t *l3_len,
|
|
- size_t *packet_len, struct timeval *ts);
|
|
+ size_t *packet_len, struct bpf_timeval *ts);
|
|
|
|
/* Well. Just pcap-style datalink. Like DLT_EN10MB or DLT_SLIP. Check in pcap(3) manpage. */
|
|
int nsi_pcap_linktype(nsock_iod nsiod);
|