| Wireshark 4.7.0 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
capture_sync.h
Go to the documentation of this file.
1/* capture_sync.h
2 * Synchronisation between Wireshark capture parent and child instances
3 *
4 * Wireshark - Network traffic analyzer
5 * By Gerald Combs <gerald@wireshark.org>
6 * Copyright 1998 Gerald Combs
7 *
8 * SPDX-License-Identifier: GPL-2.0-or-later
9 */
10
11
20#ifndef __CAPTURE_SYNC_H__
21#define __CAPTURE_SYNC_H__
22
23#include <wsutil/processes.h>
24
25#ifdef __cplusplus
26 extern "C" {
27#endif /* __cplusplus */
28
29 struct _info_data;
30
31 typedef struct _capture_session capture_session;
32 typedef struct capture_options_tag capture_options;
33
50 extern bool
51 sync_pipe_start(capture_options *capture_opts, GPtrArray *capture_comments,
52 capture_session *cap_session, struct _info_data* cap_data,
53 void(*update_cb)(void));
54
56 extern void
57 sync_pipe_stop(capture_session *cap_session);
58
60 extern void
61 sync_pipe_kill(ws_process_id fork_child);
62
86 extern int
87 sync_interface_set_80211_chan(const char* app_name, const char *iface, const char *freq, const char *type,
88 const char *center_freq1, const char *center_freq2,
89 char **data, char **primary_msg,
90 char **secondary_msg, void (*update_cb)(void));
91
110 extern int
111 sync_if_bpf_filter_open(const char* app_name, const char *ifname, const char* filter, int linktype,
112 bool optimize, char **data, char **primary_msg,
113 char **secondary_msg, void (*update_cb)(void));
114
116 extern int
117 sync_interface_list_open(const char* app_name, char **data, char **primary_msg,
118 char **secondary_msg, void (*update_cb)(void));
119
121 extern int
122 sync_if_capabilities_open(const char* app_name, const char *ifname, bool monitor_mode, const char* auth,
123 char **data, char **primary_msg,
124 char **secondary_msg, void (*update_cb)(void));
125
126 extern int
127sync_if_list_capabilities_open(const char* app_name, GList *ifqueries,
128 char **data, char **primary_msg,
129 char **secondary_msg, void (*update_cb)(void));
130
132 extern int
133 sync_interface_stats_open(const char* app_name, int *read_fd, ws_process_id *fork_child, char **data, char **msg, void (*update_cb)(void));
134
136 extern int
137 sync_interface_stats_close(int *read_fd, ws_process_id *fork_child, char **msg);
138
140 extern int
141 sync_pipe_gets_nonblock(int pipe_fd, char *bytes, int max);
142
148 extern void capture_sync_set_fetch_dumpcap_pid_cb(void(*cb)(ws_process_id pid));
149
150#ifdef __cplusplus
151}
152#endif /* __cplusplus */
153
154#endif /* __CAPTURE_SYNC_H__ */
sync_pipe_kill
void sync_pipe_kill(ws_process_id fork_child)
sync_pipe_stop
void sync_pipe_stop(capture_session *cap_session)
sync_interface_list_open
int sync_interface_list_open(const char *app_name, char **data, char **primary_msg, char **secondary_msg, void(*update_cb)(void))
sync_pipe_start
bool sync_pipe_start(capture_options *capture_opts, GPtrArray *capture_comments, capture_session *cap_session, struct _info_data *cap_data, void(*update_cb)(void))
sync_interface_set_80211_chan
int sync_interface_set_80211_chan(const char *app_name, const char *iface, const char *freq, const char *type, const char *center_freq1, const char *center_freq2, char **data, char **primary_msg, char **secondary_msg, void(*update_cb)(void))
sync_pipe_gets_nonblock
int sync_pipe_gets_nonblock(int pipe_fd, char *bytes, int max)
capture_sync_set_fetch_dumpcap_pid_cb
void capture_sync_set_fetch_dumpcap_pid_cb(void(*cb)(ws_process_id pid))
Set a callback function to to be called with the PID of the forked child.
sync_interface_stats_open
int sync_interface_stats_open(const char *app_name, int *read_fd, ws_process_id *fork_child, char **data, char **msg, void(*update_cb)(void))
sync_if_capabilities_open
int sync_if_capabilities_open(const char *app_name, const char *ifname, bool monitor_mode, const char *auth, char **data, char **primary_msg, char **secondary_msg, void(*update_cb)(void))
sync_if_bpf_filter_open
int sync_if_bpf_filter_open(const char *app_name, const char *ifname, const char *filter, int linktype, bool optimize, char **data, char **primary_msg, char **secondary_msg, void(*update_cb)(void))
sync_interface_stats_close
int sync_interface_stats_close(int *read_fd, ws_process_id *fork_child, char **msg)
processes.h
_capture_session
Definition capture_session.h:136
_info_data
Definition capture_info.h:40
capture_options_tag
Definition capture_opts.h:236
capture_options_tag::app_name
const char * app_name
Definition capture_opts.h:249