Logo Search packages:      
Sourcecode: wireshark version File versions  Download package

capture_loop.h File Reference


Detailed Description

Do the low-level work of a capture.

Definition in file capture_loop.h.

#include "wiretap/libpcap.h"

Go to the source code of this file.

Classes

struct  _loop_data

Typedefs

typedef void(* capture_packet_cb_fct )(u_char *, const struct pcap_pkthdr *, const u_char *)
typedef struct _loop_data loop_data

Enumerations

enum  initfilter_status_t { INITFILTER_NO_ERROR, INITFILTER_BAD_FILTER, INITFILTER_OTHER_ERROR }

Functions

gboolean capture_loop_close_output (capture_options *capture_opts, loop_data *ld, int *err_close)
int capture_loop_dispatch (capture_options *capture_opts _U_, loop_data *ld, char *errmsg, int errmsg_len)
initfilter_status_t capture_loop_init_filter (pcap_t *pcap_h, gboolean from_cap_pipe, const gchar *iface, gchar *cfilter)
gboolean capture_loop_init_output (capture_options *capture_opts, int save_file_fd, loop_data *ld, char *errmsg, int errmsg_len)
gboolean capture_loop_open_input (capture_options *capture_opts, loop_data *ld, char *errmsg, size_t errmsg_len, char *secondary_errmsg, size_t secondary_errmsg_len)
gboolean capture_loop_open_output (capture_options *capture_opts, int *save_file_fd, char *errmsg, int errmsg_len)
int capture_loop_start (capture_options *capture_opts, gboolean *stats_known, struct pcap_stat *stats)
void capture_loop_stop (void)
void report_capture_error (const char *error_msg, const char *secondary_error_msg)
void report_cfilter_error (const char *cfilter, const char *errmsg)
void report_new_capture_file (const char *filename)
void report_packet_count (int packet_count)
void report_packet_drops (int drops)


Generated by  Doxygen 1.6.0   Back to index