mirror of
https://github.com/nmap/nmap.git
synced 2025-12-27 18:09:01 +00:00
Update included libpcap to 1.10.1
This commit is contained in:
@@ -259,7 +259,7 @@ struct rpcap_findalldevs_ifaddr
|
||||
struct rpcap_openreply
|
||||
{
|
||||
int32 linktype; /* Link type */
|
||||
int32 tzoff; /* Timezone offset */
|
||||
int32 tzoff; /* Timezone offset - not used by newer clients */
|
||||
};
|
||||
|
||||
/* Format of the message that starts a remote capture (startcap command) */
|
||||
@@ -287,10 +287,14 @@ struct rpcap_startcapreply
|
||||
*/
|
||||
struct rpcap_pkthdr
|
||||
{
|
||||
/*
|
||||
* This protocol needs to be updated with a new version before
|
||||
* 2038-01-19 03:14:07 UTC.
|
||||
*/
|
||||
uint32 timestamp_sec; /* 'struct timeval' compatible, it represents the 'tv_sec' field */
|
||||
uint32 timestamp_usec; /* 'struct timeval' compatible, it represents the 'tv_usec' field */
|
||||
uint32 caplen; /* Length of portion present in the capture */
|
||||
uint32 len; /* Real length this packet (off wire) */
|
||||
uint32 len; /* Real length of this packet (off wire) */
|
||||
uint32 npkt; /* Ordinal number of the packet (i.e. the first one captured has '1', the second one '2', etc) */
|
||||
};
|
||||
|
||||
@@ -302,7 +306,7 @@ struct rpcap_filter
|
||||
uint32 nitems; /* Number of items contained into the filter (e.g. BPF instructions for BPF filters) */
|
||||
};
|
||||
|
||||
/* Structure that keeps a single BPF instuction; it is repeated 'ninsn' times according to the 'rpcap_filterbpf' header */
|
||||
/* Structure that keeps a single BPF instruction; it is repeated 'ninsn' times according to the 'rpcap_filterbpf' header */
|
||||
struct rpcap_filterbpf_insn
|
||||
{
|
||||
uint16 code; /* opcode of the instruction */
|
||||
@@ -346,17 +350,17 @@ struct rpcap_sampling
|
||||
*/
|
||||
#define RPCAP_MSG_IS_REPLY 0x080 /* Flag indicating a reply */
|
||||
|
||||
#define RPCAP_MSG_ERROR 1 /* Message that keeps an error notification */
|
||||
#define RPCAP_MSG_FINDALLIF_REQ 2 /* Request to list all the remote interfaces */
|
||||
#define RPCAP_MSG_OPEN_REQ 3 /* Request to open a remote device */
|
||||
#define RPCAP_MSG_STARTCAP_REQ 4 /* Request to start a capture on a remote device */
|
||||
#define RPCAP_MSG_UPDATEFILTER_REQ 5 /* Send a compiled filter into the remote device */
|
||||
#define RPCAP_MSG_CLOSE 6 /* Close the connection with the remote peer */
|
||||
#define RPCAP_MSG_PACKET 7 /* This is a 'data' message, which carries a network packet */
|
||||
#define RPCAP_MSG_AUTH_REQ 8 /* Message that keeps the authentication parameters */
|
||||
#define RPCAP_MSG_STATS_REQ 9 /* It requires to have network statistics */
|
||||
#define RPCAP_MSG_ENDCAP_REQ 10 /* Stops the current capture, keeping the device open */
|
||||
#define RPCAP_MSG_SETSAMPLING_REQ 11 /* Set sampling parameters */
|
||||
#define RPCAP_MSG_ERROR 0x01 /* Message that keeps an error notification */
|
||||
#define RPCAP_MSG_FINDALLIF_REQ 0x02 /* Request to list all the remote interfaces */
|
||||
#define RPCAP_MSG_OPEN_REQ 0x03 /* Request to open a remote device */
|
||||
#define RPCAP_MSG_STARTCAP_REQ 0x04 /* Request to start a capture on a remote device */
|
||||
#define RPCAP_MSG_UPDATEFILTER_REQ 0x05 /* Send a compiled filter into the remote device */
|
||||
#define RPCAP_MSG_CLOSE 0x06 /* Close the connection with the remote peer */
|
||||
#define RPCAP_MSG_PACKET 0x07 /* This is a 'data' message, which carries a network packet */
|
||||
#define RPCAP_MSG_AUTH_REQ 0x08 /* Message that keeps the authentication parameters */
|
||||
#define RPCAP_MSG_STATS_REQ 0x09 /* It requires to have network statistics */
|
||||
#define RPCAP_MSG_ENDCAP_REQ 0x0A /* Stops the current capture, keeping the device open */
|
||||
#define RPCAP_MSG_SETSAMPLING_REQ 0x0B /* Set sampling parameters */
|
||||
|
||||
#define RPCAP_MSG_FINDALLIF_REPLY (RPCAP_MSG_FINDALLIF_REQ | RPCAP_MSG_IS_REPLY) /* Keeps the list of all the remote interfaces */
|
||||
#define RPCAP_MSG_OPEN_REPLY (RPCAP_MSG_OPEN_REQ | RPCAP_MSG_IS_REPLY) /* The remote device has been opened correctly */
|
||||
@@ -415,9 +419,10 @@ struct rpcap_sampling
|
||||
*********************************************************/
|
||||
|
||||
#include "sockutils.h"
|
||||
#include "sslutils.h"
|
||||
|
||||
extern void rpcap_createhdr(struct rpcap_header *header, uint8 ver, uint8 type, uint16 value, uint32 length);
|
||||
extern const char *rpcap_msg_type_string(uint8 type);
|
||||
extern int rpcap_senderror(SOCKET sock, uint8 ver, uint16 errcode, const char *error, char *errbuf);
|
||||
extern int rpcap_senderror(SOCKET sock, SSL *ssl, uint8 ver, uint16 errcode, const char *error, char *errbuf);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user