WinPcap
4.1.3
|
#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... | |
Typedefs | |
typedef unsigned char | uint8 |
Provides an 8-bits unsigned integer. More... | |
typedef unsigned short | uint16 |
Provides a 16-bits unsigned integer. More... | |
typedef unsigned int | uint32 |
Provides a 32-bits unsigned integer. More... | |
typedef int | int32 |
Provides a 32-bits integer. More... | |
Functions | |
int | pcap_opensource_remote (pcap_t *p, struct pcap_rmtauth *auth) |
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) |
struct pcap_stat * | pcap_stats_ex_remote (pcap_t *p) |
void | pcap_cleanup_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) |
This file keeps all the new definitions and typedefs that are exported to the user and that are needed for the RPCAP protocol.
Definition in file pcap-remote.h.
void pcap_cleanup_remote | ( | pcap_t * | p | ) |
int pcap_opensource_remote | ( | pcap_t * | p, |
struct pcap_rmtauth * | auth | ||
) |
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_setfilter_remote | ( | pcap_t * | fp, |
struct bpf_program * | prog | ||
) |
int pcap_setsampling_remote | ( | pcap_t * | p | ) |
int pcap_startcapture_remote | ( | pcap_t * | fp | ) |
int pcap_updatefilter_remote | ( | pcap_t * | fp, |
struct bpf_program * | prog | ||
) |
int rpcap_checkmsg | ( | char * | errbuf, |
SOCKET | sock, | ||
struct rpcap_header * | header, | ||
uint8 | first, | ||
... | |||
) |
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_remoteact_getsock | ( | const char * | host, |
char * | errbuf | ||
) |
int rpcap_sendauth | ( | SOCKET | sock, |
struct pcap_rmtauth * | auth, | ||
char * | errbuf | ||
) |
int rpcap_senderror | ( | SOCKET | sock, |
char * | error, | ||
unsigned short | errcode, | ||
char * | errbuf | ||
) |
documentation. Copyright (c) 2002-2005 Politecnico di Torino. Copyright (c) 2005-2010
CACE Technologies. Copyright (c) 2010-2013
Riverbed Technology. All rights reserved.