|
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.
- Warning
- All the RPCAP functions that are allowed to return a buffer containing the error description can return max PCAP_ERRBUF_SIZE characters. However there is no guarantees that the string will be zero-terminated. Best practice is to define the errbuf variable as a char of size 'PCAP_ERRBUF_SIZE+1' and to insert manually the termination char at the end of the buffer. This will guarantee that no buffer overflows occur even if we use the printf() to show the error on the screen.
-
This file declares some typedefs that MUST be of a specific size. These definitions (i.e. typedefs) could need to be changed on other platforms than Intel IA32.
-
This file defines some structures that are used to transfer data on the network. Be careful that you compiler MUST not insert padding into these structures for better alignment. These structures have been created in order to be correctly aligned to a 32 bits boundary, but be careful in any case.
Definition in file pcap-remote.h.