|
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) (gint event, capture_session *cap_session, gpointer user_data) |
| typedef struct if_stat_cache_s | if_stat_cache_t |
Functions | |
| void | capture_callback_add (capture_callback_t func, gpointer user_data) |
| void | capture_callback_remove (capture_callback_t func, gpointer user_data) |
| void | capture_input_init (capture_session *cap_session, capture_file *cf) |
| gboolean | 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) |
| gboolean | 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 gerald@wireshark.org Copyright 1998 Gerald Combs
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 |
| void capture_kill_child | ( | capture_session * | cap_session | ) |
Terminate the capture child cleanly when exiting.
| gboolean 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).