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 <[email protected]>
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
26extern "C" {
27#endif /* __cplusplus */
28
29struct _info_data;
30
33
50extern bool
51sync_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
56extern void
58
60extern void
61sync_pipe_kill(ws_process_id fork_child);
62
85extern int
86sync_interface_set_80211_chan(const char *iface, const char *freq, const char *type,
87 const char *center_freq1, const char *center_freq2,
88 char **data, char **primary_msg,
89 char **secondary_msg, void (*update_cb)(void));
90
108extern int
109sync_if_bpf_filter_open(const char *ifname, const char* filter, int linktype,
110 bool optimize, char **data, char **primary_msg,
111 char **secondary_msg, void (*update_cb)(void));
112
114extern int
115sync_interface_list_open(char **data, char **primary_msg,
116 char **secondary_msg, void (*update_cb)(void));
117
119extern int
120sync_if_capabilities_open(const char *ifname, bool monitor_mode, const char* auth,
121 char **data, char **primary_msg,
122 char **secondary_msg, void (*update_cb)(void));
123
124extern int
125sync_if_list_capabilities_open(GList *ifqueries,
126 char **data, char **primary_msg,
127 char **secondary_msg, void (*update_cb)(void));
128
130extern int
131sync_interface_stats_open(int *read_fd, ws_process_id *fork_child, char **data, char **msg, void (*update_cb)(void));
132
134extern int
135sync_interface_stats_close(int *read_fd, ws_process_id *fork_child, char **msg);
136
138extern int
139sync_pipe_gets_nonblock(int pipe_fd, char *bytes, int max);
140
141/* set a callback to be called after fork with the pid of the forked child */
142extern void capture_sync_set_fetch_dumpcap_pid_cb(void(*cb)(ws_process_id pid));
143
144#ifdef __cplusplus
145}
146#endif /* __cplusplus */
147
148#endif /* __CAPTURE_SYNC_H__ */
int sync_if_bpf_filter_open(const char *ifname, const char *filter, int linktype, bool optimize, char **data, char **primary_msg, char **secondary_msg, void(*update_cb)(void))
void sync_pipe_kill(ws_process_id fork_child)
void sync_pipe_stop(capture_session *cap_session)
int sync_interface_set_80211_chan(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))
int sync_if_capabilities_open(const char *ifname, bool monitor_mode, const char *auth, char **data, char **primary_msg, char **secondary_msg, void(*update_cb)(void))
int sync_interface_list_open(char **data, char **primary_msg, char **secondary_msg, void(*update_cb)(void))
bool sync_pipe_start(capture_options *capture_opts, GPtrArray *capture_comments, capture_session *cap_session, struct _info_data *cap_data, void(*update_cb)(void))
int sync_pipe_gets_nonblock(int pipe_fd, char *bytes, int max)
int sync_interface_stats_open(int *read_fd, ws_process_id *fork_child, char **data, char **msg, void(*update_cb)(void))
int sync_interface_stats_close(int *read_fd, ws_process_id *fork_child, char **msg)
Definition capture_session.h:136
Definition capture_info.h:40
Definition capture_opts.h:236