34 #ifndef __REMOTE_EXT_H__ 35 #define __REMOTE_EXT_H__ 39 #error Please do not include this file directly. Just define HAVE_REMOTE and then include pcap.h 80 #define PCAP_BUF_SIZE 1024 95 #define PCAP_SRC_FILE 2 103 #define PCAP_SRC_IFLOCAL 3 111 #define PCAP_SRC_IFREMOTE 4 166 #define PCAP_SRC_FILE_STRING "file://" 179 #define PCAP_SRC_IF_STRING "rpcap://" 205 #define PCAP_OPENFLAG_PROMISCUOUS 1 219 #define PCAP_OPENFLAG_DATATX_UDP 2 230 #define PCAP_OPENFLAG_NOCAPTURE_RPCAP 4 239 #define PCAP_OPENFLAG_NOCAPTURE_LOCAL 8 251 #define PCAP_OPENFLAG_MAX_RESPONSIVENESS 16 268 #define PCAP_SAMP_NOSAMP 0 278 #define PCAP_SAMP_1_EVERY_N 1 288 #define PCAP_SAMP_FIRST_AFTER_N_MS 2 307 #define RPCAP_RMTAUTH_NULL 0 318 #define RPCAP_RMTAUTH_PWD 1 400 #define RPCAP_HOSTLIST_SIZE 1024 420 PCAP_API
int pcap_createsrcstr(
char *source,
int type,
const char *host,
const char *port,
const char *name,
char *errbuf);
421 PCAP_API
int pcap_parsesrcstr(
const char *source,
int *
type,
char *host,
char *port,
char *name,
char *errbuf);
450 #define INVALID_SOCKET -1
PCAP_API int pcap_findalldevs_ex(char *source, struct pcap_rmtauth *auth, pcap_if_t **alldevs, char *errbuf)
PCAP_API int pcap_parsesrcstr(const char *source, int *type, char *host, char *port, char *name, char *errbuf)
struct pcap pcap_t
Descriptor of an open capture instance. This structure is opaque to the user, that handles its conten...
PCAP_API void pcap_remoteact_cleanup()
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 struct pcap_samp * pcap_setsampling(pcap_t *p)
#define SOCKET
In Winsock, a socket handle is of type SOCKET; in UN*X, it's a file descriptor, and therefore a signe...
PCAP_API int pcap_remoteact_close(const char *host, char *errbuf)
PCAP_API int pcap_remoteact_list(char *hostlist, char sep, int size, char *errbuf)
PCAP_API int pcap_createsrcstr(char *source, int type, const char *host, const char *port, const char *name, char *errbuf)
PCAP_API pcap_t * pcap_open(const char *source, int snaplen, int flags, int read_timeout, struct pcap_rmtauth *auth, char *errbuf)
Item in a list of interfaces, used by pcap_findalldevs().