Wireshark 5.1.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
capture_process_info.h
Go to the documentation of this file.
1
12
13#ifndef __CAPTURE_PROCESS_INFO_H__
14#define __CAPTURE_PROCESS_INFO_H__
15
16#include <wireshark.h>
18
19#ifdef __cplusplus
20extern "C" {
21#endif /* __cplusplus */
22
23typedef struct capture_process_info capture_process_info_t;
24
29typedef GList *(*capture_process_info_iface_list_func)(int *err, char **err_str);
30
40extern capture_process_info_t *
42 ws_process_detail_t detail, char **err_msg);
43
44extern void
45capture_process_info_free(capture_process_info_t *cpi);
46
52extern bool
54
70extern unsigned
71capture_process_info_lookup(capture_process_info_t *cpi, int linktype,
72 const uint8_t *data, size_t len,
73 GPtrArray *processes);
74
80extern void
81capture_process_info_new_file(capture_process_info_t *cpi);
82
89extern bool
90capture_process_info_needs_description(capture_process_info_t *cpi,
91 const ws_process_info_t *process);
92
93#ifdef __cplusplus
94}
95#endif /* __cplusplus */
96
97#endif /* __CAPTURE_PROCESS_INFO_H__ */
bool capture_process_info_needs_description(capture_process_info_t *cpi, const ws_process_info_t *process)
Whether a process still has to be described in the output file.
Definition capture_process_info.c:197
bool capture_process_info_linktype_supported(int linktype)
Whether packets with a link-layer header type can be attributed.
Definition capture_process_info.c:151
void capture_process_info_new_file(capture_process_info_t *cpi)
Forget which processes the output file already describes.
Definition capture_process_info.c:191
GList *(* capture_process_info_iface_list_func)(int *err, char **err_str)
Definition capture_process_info.h:29
capture_process_info_t * capture_process_info_new(capture_process_info_iface_list_func get_iface_list, ws_process_detail_t detail, char **err_msg)
Set up to attribute packets to processes.
Definition capture_process_info.c:118
unsigned capture_process_info_lookup(capture_process_info_t *cpi, int linktype, const uint8_t *data, size_t len, GPtrArray *processes)
Find the processes that sent or received a packet.
Definition capture_process_info.c:157
ws_process_detail_t
How much is found out about a process.
Definition process_lookup.h:110
struct ws_process_info ws_process_info_t
What the operating system knows about a process.
Definition capture_process_info.c:24