WinPcap  4.1.3
Data Structures | Macros
remote-ext.h File Reference

Go to the source code of this file.

Data Structures

struct  pcap_rmtauth
 
struct  pcap_samp
 

Macros

#define PCAP_BUF_SIZE   1024
 
#define PCAP_SRC_FILE   2
 
#define PCAP_SRC_IFLOCAL   3
 
#define PCAP_SRC_IFREMOTE   4
 
#define PCAP_SRC_FILE_STRING   "file://"
 
#define PCAP_SRC_IF_STRING   "rpcap://"
 
#define PCAP_OPENFLAG_PROMISCUOUS   1
 
#define PCAP_OPENFLAG_DATATX_UDP   2
 
#define PCAP_OPENFLAG_NOCAPTURE_RPCAP   4
 
#define PCAP_OPENFLAG_NOCAPTURE_LOCAL   8
 
#define PCAP_OPENFLAG_MAX_RESPONSIVENESS   16
 
#define PCAP_SAMP_NOSAMP   0
 
#define PCAP_SAMP_1_EVERY_N   1
 
#define PCAP_SAMP_FIRST_AFTER_N_MS   2
 
#define RPCAP_RMTAUTH_NULL   0
 
#define RPCAP_RMTAUTH_PWD   1
 
#define RPCAP_HOSTLIST_SIZE   1024
 
#define SOCKET   int
 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. More...
 
#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. More...
 

Functions

PCAP_API pcap_tpcap_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_samppcap_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 ()
 

Macro Definition Documentation

◆ 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

Definition at line 80 of file remote-ext.h.

◆ PCAP_OPENFLAG_DATATX_UDP

#define PCAP_OPENFLAG_DATATX_UDP   2

Definition at line 219 of file remote-ext.h.

◆ PCAP_OPENFLAG_MAX_RESPONSIVENESS

#define PCAP_OPENFLAG_MAX_RESPONSIVENESS   16

Definition at line 251 of file remote-ext.h.

◆ PCAP_OPENFLAG_NOCAPTURE_LOCAL

#define PCAP_OPENFLAG_NOCAPTURE_LOCAL   8

Definition at line 239 of file remote-ext.h.

◆ PCAP_OPENFLAG_NOCAPTURE_RPCAP

#define PCAP_OPENFLAG_NOCAPTURE_RPCAP   4

Definition at line 230 of file remote-ext.h.

◆ PCAP_OPENFLAG_PROMISCUOUS

#define PCAP_OPENFLAG_PROMISCUOUS   1

Definition at line 205 of file remote-ext.h.

◆ PCAP_SAMP_1_EVERY_N

#define PCAP_SAMP_1_EVERY_N   1

Definition at line 278 of file remote-ext.h.

◆ PCAP_SAMP_FIRST_AFTER_N_MS

#define PCAP_SAMP_FIRST_AFTER_N_MS   2

Definition at line 288 of file remote-ext.h.

◆ PCAP_SAMP_NOSAMP

#define PCAP_SAMP_NOSAMP   0

Definition at line 268 of file remote-ext.h.

◆ PCAP_SRC_FILE

#define PCAP_SRC_FILE   2

Definition at line 95 of file remote-ext.h.

◆ PCAP_SRC_FILE_STRING

#define PCAP_SRC_FILE_STRING   "file://"

Definition at line 166 of file remote-ext.h.

◆ PCAP_SRC_IF_STRING

#define PCAP_SRC_IF_STRING   "rpcap://"

Definition at line 179 of file remote-ext.h.

◆ PCAP_SRC_IFLOCAL

#define PCAP_SRC_IFLOCAL   3

Definition at line 103 of file remote-ext.h.

◆ PCAP_SRC_IFREMOTE

#define PCAP_SRC_IFREMOTE   4

Definition at line 111 of file remote-ext.h.

◆ RPCAP_HOSTLIST_SIZE

#define RPCAP_HOSTLIST_SIZE   1024

Definition at line 400 of file remote-ext.h.

◆ RPCAP_RMTAUTH_NULL

#define RPCAP_RMTAUTH_NULL   0

Definition at line 307 of file remote-ext.h.

◆ RPCAP_RMTAUTH_PWD

#define RPCAP_RMTAUTH_PWD   1

Definition at line 318 of file remote-ext.h.

◆ SOCKET

#define SOCKET   int

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.

Function Documentation

◆ 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()

PCAP_API struct pcap_samp* pcap_setsampling ( pcap_t p)

documentation. Copyright (c) 2002-2005 Politecnico di Torino. Copyright (c) 2005-2010 CACE Technologies. Copyright (c) 2010-2013 Riverbed Technology. All rights reserved.