![]() |
Wireshark
4.3.0
The Wireshark network protocol analyzer
|
#include "capture_opts.h"
#include "capture_info.h"
#include "cfile.h"
#include "capture/capture_session.h"
Go to the source code of this file.
Typedefs | |
typedef void(* | capture_callback_t) (int event, capture_session *cap_session, void *user_data) |
typedef struct if_stat_cache_s | if_stat_cache_t |
Functions | |
void | capture_callback_add (capture_callback_t func, void *user_data) |
void | capture_callback_remove (capture_callback_t func, void *user_data) |
void | capture_input_init (capture_session *cap_session, capture_file *cf) |
bool | capture_start (capture_options *capture_opts, GPtrArray *capture_comments, capture_session *cap_session, info_data_t *cap_data, void(*update_cb)(void)) |
void | capture_stop (capture_session *cap_session) |
void | capture_kill_child (capture_session *cap_session) |
WS_RETNONNULL if_stat_cache_t * | capture_stat_start (capture_options *capture_opts) |
WS_RETNONNULL if_stat_cache_t * | capture_interface_stat_start (capture_options *capture_opts, GList **if_list) |
bool | capture_stats (if_stat_cache_t *sc, char *ifname, struct pcap_stat *ps) |
void | capture_stat_stop (if_stat_cache_t *sc) |
Definitions for packet capture windows
Wireshark - Network traffic analyzer By Gerald Combs geral Copyright 1998 Gerald Combs d@wi resha rk.o rg
SPDX-License-Identifier: GPL-2.0-or-later
Capture related things.
void capture_input_init | ( | capture_session * | cap_session, |
capture_file * | cf | ||
) |
Initialize a capture session.
cap_session | the handle for the capture session |
cf | the capture_file for the file |
WS_RETNONNULL if_stat_cache_t* capture_interface_stat_start | ( | capture_options * | capture_opts, |
GList ** | if_list | ||
) |
Retrieve the list of interfaces and their capabilities, and start gathering capture statistics for the interfaces.
capture_opts | A structure containing options for the capture. | |
[out] | if_list | A pointer that will store a GList of if_info_t. |
void capture_kill_child | ( | capture_session * | cap_session | ) |
Terminate the capture child cleanly when exiting.
bool capture_start | ( | capture_options * | capture_opts, |
GPtrArray * | capture_comments, | ||
capture_session * | cap_session, | ||
info_data_t * | cap_data, | ||
void(*)(void) | update_cb | ||
) |
Start a capture session.
capture_opts | the numerous capture options |
capture_comments | if not NULL, a GPtrArray * to a set of comments to put in the capture file's Section Header Block if it's a pcapng file |
cap_session | the handle for the capture session |
cap_data | a struct with capture info data |
update_cb | update screen |
WS_RETNONNULL if_stat_cache_t* capture_stat_start | ( | capture_options * | capture_opts | ) |
Start gathering capture statistics for the interfaces specified.
capture_opts | A structure containing options for the capture. |
void capture_stat_stop | ( | if_stat_cache_t * | sc | ) |
Stop gathering capture statistics.
void capture_stop | ( | capture_session * | cap_session | ) |
Stop a capture session (usually from a menu item).