13#ifndef __CAPTURE_PROCESS_INFO_H__
14#define __CAPTURE_PROCESS_INFO_H__
29typedef GList *(*capture_process_info_iface_list_func)(
int *err,
char **err_str);
40extern capture_process_info_t *
45capture_process_info_free(capture_process_info_t *cpi);
72 const uint8_t *data,
size_t len,
73 GPtrArray *processes);
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