Wireshark  2.9.0-477-g68ec514b
The Wireshark network protocol analyzer
Classes | Macros | Typedefs | Enumerations | Functions
/home/wireshark/builders/wireshark-master/ubuntu-16.04-x64/build/capture_opts.h File Reference
#include <caputils/capture_ifinfo.h>

Go to the source code of this file.

Classes

struct  interface_tag
 
struct  link_row_tag
 
struct  interface_options_tag
 
struct  capture_options_tag
 

Macros

#define LONGOPT_NUM_CAP_COMMENT   128
 
#define LONGOPT_LIST_TSTAMP_TYPES   129
 
#define LONGOPT_SET_TSTAMP_TYPE   130
 
#define OPTSTRING_A   ""
 
#define LONGOPT_BUFFER_SIZE
 
#define OPTSTRING_B   ""
 
#define LONGOPT_MONITOR_MODE
 
#define OPTSTRING_I   ""
 
#define LONGOPT_CAPTURE_COMMON
 
#define OPTSTRING_CAPTURE_COMMON   "a:" OPTSTRING_A "b:" OPTSTRING_B "c:Df:i:" OPTSTRING_I "Lps:y:"
 
#define DEFAULT_CAPTURE_BUFFER_SIZE   2
 

Typedefs

typedef struct interface_tag interface_t
 
typedef struct link_row_tag link_row
 
typedef struct interface_options_tag interface_options
 
typedef struct capture_options_tag capture_options
 

Enumerations

enum  caps_query { CAPS_MONITOR_MODE = 0x1, CAPS_QUERY_LINK_TYPES = 0x2, CAPS_QUERY_TIMESTAMP_TYPES = 0x4 }
 

Functions

void capture_opts_init (capture_options *capture_opts)
 
void capture_opts_cleanup (capture_options *capture_opts)
 
int capture_opts_add_opt (capture_options *capture_opts, int opt, const char *optarg, gboolean *start_capture)
 
void capture_opts_log (const char *log_domain, GLogLevelFlags log_level, capture_options *capture_opts)
 
void capture_opts_print_if_capabilities (if_capabilities_t *caps, char *name, int queries)
 
void capture_opts_print_interfaces (GList *if_list)
 
void capture_opts_trim_snaplen (capture_options *capture_opts, int snaplen_min)
 
void capture_opts_trim_ring_num_files (capture_options *capture_opts)
 
int capture_opts_default_iface_if_necessary (capture_options *capture_opts, const char *capture_device)
 
void capture_opts_del_iface (capture_options *capture_opts, guint if_index)
 
void collect_ifaces (capture_options *capture_opts)
 
void capture_opts_free_interface_t (interface_t *device)
 

Detailed Description

Capture options (all parameters needed to do the actual capture)

Macro Definition Documentation

#define LONGOPT_CAPTURE_COMMON
Value:
{"capture-comment", required_argument, NULL, LONGOPT_NUM_CAP_COMMENT}, \
{"autostop", required_argument, NULL, 'a'}, \
{"ring-buffer", required_argument, NULL, 'b'}, \
LONGOPT_BUFFER_SIZE \
{"list-interfaces", no_argument, NULL, 'D'}, \
{"interface", required_argument, NULL, 'i'}, \
LONGOPT_MONITOR_MODE \
{"list-data-link-types", no_argument, NULL, 'L'}, \
{"no-promiscuous-mode", no_argument, NULL, 'p'}, \
{"snapshot-length", required_argument, NULL, 's'}, \
{"linktype", required_argument, NULL, 'y'}, \
{"list-time-stamp-types", no_argument, NULL, LONGOPT_LIST_TSTAMP_TYPES}, \
{"time-stamp-type", required_argument, NULL, LONGOPT_SET_TSTAMP_TYPE},

Typedef Documentation

Capture options coming from user interface