Go to the source code of this file.
|
|
PCAP_API pcap_t * | pcap_open (const char *source, int snaplen, int flags, int read_timeout, struct pcap_rmtauth *auth, char *errbuf) |
|
PCAP_API int | pcap_createsrcstr (char *source, int type, const char *host, const char *port, const char *name, char *errbuf) |
|
PCAP_API int | pcap_parsesrcstr (const char *source, int *type, char *host, char *port, char *name, char *errbuf) |
|
PCAP_API int | pcap_findalldevs_ex (char *source, struct pcap_rmtauth *auth, pcap_if_t **alldevs, char *errbuf) |
|
PCAP_API struct pcap_samp * | pcap_setsampling (pcap_t *p) |
|
|
PCAP_API SOCKET | pcap_remoteact_accept (const char *address, const char *port, const char *hostlist, char *connectinghost, struct pcap_rmtauth *auth, char *errbuf) |
|
PCAP_API int | pcap_remoteact_list (char *hostlist, char sep, int size, char *errbuf) |
|
PCAP_API int | pcap_remoteact_close (const char *host, char *errbuf) |
|
PCAP_API void | pcap_remoteact_cleanup () |
|
◆ INVALID_SOCKET
#define INVALID_SOCKET -1 |
In Winsock, the error return if socket() fails is INVALID_SOCKET; in UN*X, it's -1. We define INVALID_SOCKET to be -1 on UN*X, so that it can be used on both platforms.
Definition at line 450 of file remote-ext.h.
◆ PCAP_BUF_SIZE
#define PCAP_BUF_SIZE 1024 |
◆ PCAP_OPENFLAG_DATATX_UDP
#define PCAP_OPENFLAG_DATATX_UDP 2 |
◆ PCAP_OPENFLAG_MAX_RESPONSIVENESS
#define PCAP_OPENFLAG_MAX_RESPONSIVENESS 16 |
◆ PCAP_OPENFLAG_NOCAPTURE_LOCAL
#define PCAP_OPENFLAG_NOCAPTURE_LOCAL 8 |
◆ PCAP_OPENFLAG_NOCAPTURE_RPCAP
#define PCAP_OPENFLAG_NOCAPTURE_RPCAP 4 |
◆ PCAP_OPENFLAG_PROMISCUOUS
#define PCAP_OPENFLAG_PROMISCUOUS 1 |
◆ PCAP_SAMP_1_EVERY_N
#define PCAP_SAMP_1_EVERY_N 1 |
◆ PCAP_SAMP_FIRST_AFTER_N_MS
#define PCAP_SAMP_FIRST_AFTER_N_MS 2 |
◆ PCAP_SAMP_NOSAMP
#define PCAP_SAMP_NOSAMP 0 |
◆ PCAP_SRC_FILE
◆ PCAP_SRC_FILE_STRING
#define PCAP_SRC_FILE_STRING "file://" |
◆ PCAP_SRC_IF_STRING
#define PCAP_SRC_IF_STRING "rpcap://" |
◆ PCAP_SRC_IFLOCAL
#define PCAP_SRC_IFLOCAL 3 |
◆ PCAP_SRC_IFREMOTE
#define PCAP_SRC_IFREMOTE 4 |
◆ RPCAP_HOSTLIST_SIZE
#define RPCAP_HOSTLIST_SIZE 1024 |
◆ RPCAP_RMTAUTH_NULL
#define RPCAP_RMTAUTH_NULL 0 |
◆ RPCAP_RMTAUTH_PWD
#define RPCAP_RMTAUTH_PWD 1 |
◆ SOCKET
In Winsock, a socket handle is of type SOCKET; in UN*X, it's a file descriptor, and therefore a signed integer. We define SOCKET to be a signed integer on UN*X, so that it can be used on both platforms.
Definition at line 442 of file remote-ext.h.
◆ pcap_createsrcstr()
PCAP_API int pcap_createsrcstr |
( |
char * |
source, |
|
|
int |
type, |
|
|
const char * |
host, |
|
|
const char * |
port, |
|
|
const char * |
name, |
|
|
char * |
errbuf |
|
) |
| |
◆ pcap_findalldevs_ex()
PCAP_API int pcap_findalldevs_ex |
( |
char * |
source, |
|
|
struct pcap_rmtauth * |
auth, |
|
|
pcap_if_t ** |
alldevs, |
|
|
char * |
errbuf |
|
) |
| |
◆ pcap_open()
PCAP_API pcap_t* pcap_open |
( |
const char * |
source, |
|
|
int |
snaplen, |
|
|
int |
flags, |
|
|
int |
read_timeout, |
|
|
struct pcap_rmtauth * |
auth, |
|
|
char * |
errbuf |
|
) |
| |
◆ pcap_parsesrcstr()
PCAP_API int pcap_parsesrcstr |
( |
const char * |
source, |
|
|
int * |
type, |
|
|
char * |
host, |
|
|
char * |
port, |
|
|
char * |
name, |
|
|
char * |
errbuf |
|
) |
| |
◆ pcap_remoteact_accept()
PCAP_API SOCKET pcap_remoteact_accept |
( |
const char * |
address, |
|
|
const char * |
port, |
|
|
const char * |
hostlist, |
|
|
char * |
connectinghost, |
|
|
struct pcap_rmtauth * |
auth, |
|
|
char * |
errbuf |
|
) |
| |
◆ pcap_remoteact_cleanup()
PCAP_API void pcap_remoteact_cleanup |
( |
| ) |
|
◆ pcap_remoteact_close()
PCAP_API int pcap_remoteact_close |
( |
const char * |
host, |
|
|
char * |
errbuf |
|
) |
| |
◆ pcap_remoteact_list()
PCAP_API int pcap_remoteact_list |
( |
char * |
hostlist, |
|
|
char |
sep, |
|
|
int |
size, |
|
|
char * |
errbuf |
|
) |
| |
◆ pcap_setsampling()