WinPcap: pcap-remote.h File Reference
优质
小牛编辑
128浏览
2023-12-01
#include "pcap.h"
#include "sockutils.h"
Go to the source code of this file.
Data Structures | |
struct | activehosts |
Keeps a list of all the opened connections in the active mode. More... | |
struct | rpcap_header |
Common header for all the RPCAP messages. More... | |
struct | rpcap_findalldevs_if |
Format of the message for the interface description (findalldevs command). More... | |
struct | rpcap_findalldevs_ifaddr |
Format of the message for the address listing (findalldevs command). More... | |
struct | rpcap_openreply |
Format of the message of the connection opening reply (open command). More... | |
struct | rpcap_startcapreq |
Format of the message that starts a remote capture (startcap command). More... | |
struct | rpcap_startcapreply |
Format of the reply message that devoted to start a remote capture (startcap reply command). More... | |
struct | rpcap_pkthdr |
Format of the header which encapsulates captured packets when transmitted on the network. More... | |
struct | rpcap_filter |
General header used for the pcap_setfilter() command; keeps just the number of BPF instructions. More... | |
struct | rpcap_filterbpf_insn |
Structure that keeps a single BPF instuction; it is repeated 'ninsn' times according to the 'rpcap_filterbpf' header. More... | |
struct | rpcap_auth |
Structure that keeps the data required for the authentication on the remote host. More... | |
struct | rpcap_stats |
Structure that keeps the statistics about the number of packets captured, dropped, etc. More... | |
struct | rpcap_sampling |
Structure that is needed to set sampling parameters. More... | |
Defines | |
#define | RPCAP_DEFAULT_NETPORT"2002" |
#define | RPCAP_DEFAULT_NETPORT_ACTIVE"2003" |
#define | RPCAP_DEFAULT_NETADDR"" |
#define | RPCAP_VERSION0 |
#define | RPCAP_TIMEOUT_INIT90 |
#define | RPCAP_TIMEOUT_RUNTIME180 |
#define | RPCAP_ACTIVE_WAIT30 |
#define | RPCAP_SUSPEND_WRONGAUTH1 |
#define | RPCAP_NETBUF_SIZE64000 |
Buffer used by socket functions to send-receive packets. In case you plan to have messages larger than this value, you have to increase it. | |
#define | RPCAP_HOSTLIST_SEP" ,;nr" |
Separators used for the host list. | |
#define | RPCAP_MSG_ERROR1 |
#define | RPCAP_MSG_FINDALLIF_REQ2 |
#define | RPCAP_MSG_OPEN_REQ3 |
#define | RPCAP_MSG_STARTCAP_REQ4 |
#define | RPCAP_MSG_UPDATEFILTER_REQ5 |
#define | RPCAP_MSG_CLOSE6 |
#define | RPCAP_MSG_PACKET7 |
#define | RPCAP_MSG_AUTH_REQ8 |
#define | RPCAP_MSG_STATS_REQ9 |
#define | RPCAP_MSG_ENDCAP_REQ10 |
#define | RPCAP_MSG_SETSAMPLING_REQ11 |
#define | RPCAP_MSG_FINDALLIF_REPLY(128+RPCAP_MSG_FINDALLIF_REQ) |
#define | RPCAP_MSG_OPEN_REPLY(128+RPCAP_MSG_OPEN_REQ) |
#define | RPCAP_MSG_STARTCAP_REPLY(128+RPCAP_MSG_STARTCAP_REQ) |
#define | RPCAP_MSG_UPDATEFILTER_REPLY(128+RPCAP_MSG_UPDATEFILTER_REQ) |
#define | RPCAP_MSG_AUTH_REPLY(128+RPCAP_MSG_AUTH_REQ) |
#define | RPCAP_MSG_STATS_REPLY(128+RPCAP_MSG_STATS_REQ) |
#define | RPCAP_MSG_ENDCAP_REPLY(128+RPCAP_MSG_ENDCAP_REQ) |
#define | RPCAP_MSG_SETSAMPLING_REPLY(128+RPCAP_MSG_SETSAMPLING_REQ) |
#define | RPCAP_STARTCAPREQ_FLAG_PROMISC1 |
#define | RPCAP_STARTCAPREQ_FLAG_DGRAM2 |
#define | RPCAP_STARTCAPREQ_FLAG_SERVEROPEN4 |
#define | RPCAP_STARTCAPREQ_FLAG_INBOUND8 |
#define | RPCAP_STARTCAPREQ_FLAG_OUTBOUND16 |
#define | RPCAP_UPDATEFILTER_BPF1 |
#define | PCAP_ERR_NETW1 |
#define | PCAP_ERR_INITTIMEOUT2 |
#define | PCAP_ERR_AUTH3 |
#define | PCAP_ERR_FINDALLIF4 |
#define | PCAP_ERR_NOREMOTEIF5 |
#define | PCAP_ERR_OPEN6 |
#define | PCAP_ERR_UPDATEFILTER7 |
#define | PCAP_ERR_GETSTATS8 |
#define | PCAP_ERR_READEX9 |
#define | PCAP_ERR_HOSTNOAUTH10 |
#define | PCAP_ERR_REMOTEACCEPT11 |
#define | PCAP_ERR_STARTCAPTURE12 |
#define | PCAP_ERR_ENDCAPTURE13 |
#define | PCAP_ERR_RUNTIMETIMEOUT14 |
#define | PCAP_ERR_SETSAMPLING15 |
#define | PCAP_ERR_WRONGMSG16 |
#define | PCAP_ERR_WRONGVER17 |
Typedefs | |
typedef unsigned char | uint8 |
Provides an 8-bits unsigned integer. | |
typedef unsigned short | uint16 |
Provides a 16-bits unsigned integer. | |
typedef unsigned int | uint32 |
Provides a 32-bits unsigned integer. | |
typedef int | int32 |
Provides a 32-bits integer. | |
Functions | |
pcap_t * | pcap_opensource_remote (const char *source, struct pcap_rmtauth *auth, char *errbuf) |
int | pcap_startcapture_remote (pcap_t *fp) |
int | pcap_read_nocb_remote (pcap_t *p, struct pcap_pkthdr **pkt_header, u_char **pkt_data) |
int | pcap_read_remote (pcap_t *p, int cnt, pcap_handler callback, u_char *user) |
int | pcap_updatefilter_remote (pcap_t *fp, struct bpf_program *prog) |
int | pcap_setfilter_remote (pcap_t *fp, struct bpf_program *prog) |
int | pcap_stats_remote (pcap_t *p, struct pcap_stat *ps) |
int | pcap_setsampling_remote (pcap_t *p) |
pcap_stat * | pcap_stats_ex_remote (pcap_t *p) |
void | pcap_close_remote (pcap_t *p) |
void | rpcap_createhdr (struct rpcap_header *header, uint8 type, uint16 value, uint32 length) |
int | rpcap_deseraddr (struct sockaddr_storage *sockaddrin, struct sockaddr_storage **sockaddrout, char *errbuf) |
int | rpcap_checkmsg (char *errbuf, SOCKET sock, struct rpcap_header *header, uint8 first,...) |
int | rpcap_senderror (SOCKET sock, char *error, unsigned short errcode, char *errbuf) |
int | rpcap_sendauth (SOCKET sock, struct pcap_rmtauth *auth, char *errbuf) |
int | rpcap_remoteact_getsock (const char *host, char *errbuf) |