|
Wireshark 4.7.4
The Wireshark network protocol analyzer
|
Structure containing pointers to functions supplied by the user of libwireshark. More...
#include <epan.h>
Public Attributes | |
| const nstime_t *(* | get_frame_ts )(struct packet_provider_data *prov, uint32_t frame_num) |
| Get the timestamp of a specific frame. | |
| const nstime_t *(* | get_start_ts )(struct packet_provider_data *prov) |
| Get the start timestamp of the capture session. | |
| const nstime_t *(* | get_end_ts )(struct packet_provider_data *prov) |
| Get the end timestamp of the capture session. | |
| const char *(* | get_interface_name )(struct packet_provider_data *prov, uint32_t interface_id, unsigned section_number) |
| Get the name of a capture interface. | |
| const char *(* | get_interface_description )(struct packet_provider_data *prov, uint32_t interface_id, unsigned section_number) |
| Get the description of a capture interface. | |
| wtap_block_t(* | get_modified_block )(struct packet_provider_data *prov, const frame_data *fd) |
| Get a modified WTAP block for a given frame. | |
| int32_t(* | get_process_id )(struct packet_provider_data *prov, uint32_t process_info_id, unsigned section_number) |
| Get the process ID associated with a packet. | |
| const char *(* | get_process_name )(struct packet_provider_data *prov, uint32_t process_info_id, unsigned section_number) |
| Get the name of the process associated with a packet. | |
| const uint8_t *(* | get_process_uuid )(struct packet_provider_data *prov, uint32_t process_info_id, unsigned section_number, size_t *uuid_size) |
| Get the UUID of the process associated with a packet. | |
| const char *(* | get_process_path )(struct packet_provider_data *prov, uint32_t process_info_id, unsigned section_number) |
| Get the path of the executable image of a process. | |
| const uint8_t *(* | get_process_cmdline )(struct packet_provider_data *prov, uint32_t process_info_id, unsigned section_number, size_t *cmdline_size) |
| Get the command line of a process. | |
| bool(* | get_process_parent_id )(struct packet_provider_data *prov, uint32_t process_info_id, unsigned section_number, uint32_t *parent_process_id) |
| Get the ID of the parent of a process. | |
| bool(* | get_process_user_id )(struct packet_provider_data *prov, uint32_t process_info_id, unsigned section_number, uint32_t *user_id) |
| Get the numeric ID of the user a process runs as. | |
| const char *(* | get_process_user_name )(struct packet_provider_data *prov, uint32_t process_info_id, unsigned section_number) |
| Get the name of the user a process runs as. | |
| bool(* | get_process_start_time )(struct packet_provider_data *prov, uint32_t process_info_id, unsigned section_number, nstime_t *start_time) |
| Get the start time of a process. | |
| bool(* | find_process_info )(struct packet_provider_data *prov, uint32_t process_id, unsigned section_number, const nstime_t *ts, int64_t file_off, uint32_t *process_info_id) |
| Find the process information for a process ID. | |
Structure containing pointers to functions supplied by the user of libwireshark.
Each function pointer corresponds to a callback that provides specific information about packets, interfaces, or processes during packet processing.
| bool(* packet_provider_funcs::find_process_info) (struct packet_provider_data *prov, uint32_t process_id, unsigned section_number, const nstime_t *ts, int64_t file_off, uint32_t *process_info_id) |
Find the process information for a process ID.
| prov | Packet provider context. |
| process_id | Process ID, as in the pcapng epb_processid_threadid option. |
| section_number | Capture section number. |
| ts | Time stamp of the packet, to tell apart processes that reused the ID, or NULL. |
| file_off | File offset of the packet, to prefer the blocks that precede it, or -1. |
| process_info_id | Output parameter for the process info identifier. |
| const nstime_t *(* packet_provider_funcs::get_end_ts) (struct packet_provider_data *prov) |
Get the end timestamp of the capture session.
| prov | Packet provider context. |
| const nstime_t *(* packet_provider_funcs::get_frame_ts) (struct packet_provider_data *prov, uint32_t frame_num) |
Get the timestamp of a specific frame.
| prov | Packet provider context. |
| frame_num | Frame number to query. |
| const char *(* packet_provider_funcs::get_interface_description) (struct packet_provider_data *prov, uint32_t interface_id, unsigned section_number) |
Get the description of a capture interface.
| prov | Packet provider context. |
| interface_id | Interface identifier. |
| section_number | Capture section number. |
| const char *(* packet_provider_funcs::get_interface_name) (struct packet_provider_data *prov, uint32_t interface_id, unsigned section_number) |
Get the name of a capture interface.
| prov | Packet provider context. |
| interface_id | Interface identifier. |
| section_number | Capture section number. |
| wtap_block_t(* packet_provider_funcs::get_modified_block) (struct packet_provider_data *prov, const frame_data *fd) |
Get a modified WTAP block for a given frame.
| prov | Packet provider context. |
| fd | Frame metadata. |
| const uint8_t *(* packet_provider_funcs::get_process_cmdline) (struct packet_provider_data *prov, uint32_t process_info_id, unsigned section_number, size_t *cmdline_size) |
Get the command line of a process.
| prov | Packet provider context. |
| process_info_id | Process info identifier. |
| section_number | Capture section number. |
| cmdline_size | Output parameter for the size of the command line. |
| int32_t(* packet_provider_funcs::get_process_id) (struct packet_provider_data *prov, uint32_t process_info_id, unsigned section_number) |
Get the process ID associated with a packet.
| prov | Packet provider context. |
| process_info_id | Process info identifier. |
| section_number | Capture section number. |
| const char *(* packet_provider_funcs::get_process_name) (struct packet_provider_data *prov, uint32_t process_info_id, unsigned section_number) |
Get the name of the process associated with a packet.
| prov | Packet provider context. |
| process_info_id | Process info identifier. |
| section_number | Capture section number. |
| bool(* packet_provider_funcs::get_process_parent_id) (struct packet_provider_data *prov, uint32_t process_info_id, unsigned section_number, uint32_t *parent_process_id) |
Get the ID of the parent of a process.
| prov | Packet provider context. |
| process_info_id | Process info identifier. |
| section_number | Capture section number. |
| parent_process_id | Output parameter for the parent process ID. |
| const char *(* packet_provider_funcs::get_process_path) (struct packet_provider_data *prov, uint32_t process_info_id, unsigned section_number) |
Get the path of the executable image of a process.
| prov | Packet provider context. |
| process_info_id | Process info identifier. |
| section_number | Capture section number. |
| bool(* packet_provider_funcs::get_process_start_time) (struct packet_provider_data *prov, uint32_t process_info_id, unsigned section_number, nstime_t *start_time) |
Get the start time of a process.
| prov | Packet provider context. |
| process_info_id | Process info identifier. |
| section_number | Capture section number. |
| start_time | Output parameter for the start time. |
| bool(* packet_provider_funcs::get_process_user_id) (struct packet_provider_data *prov, uint32_t process_info_id, unsigned section_number, uint32_t *user_id) |
Get the numeric ID of the user a process runs as.
| prov | Packet provider context. |
| process_info_id | Process info identifier. |
| section_number | Capture section number. |
| user_id | Output parameter for the user ID. |
| const char *(* packet_provider_funcs::get_process_user_name) (struct packet_provider_data *prov, uint32_t process_info_id, unsigned section_number) |
Get the name of the user a process runs as.
| prov | Packet provider context. |
| process_info_id | Process info identifier. |
| section_number | Capture section number. |
| const uint8_t *(* packet_provider_funcs::get_process_uuid) (struct packet_provider_data *prov, uint32_t process_info_id, unsigned section_number, size_t *uuid_size) |
Get the UUID of the process associated with a packet.
| prov | Packet provider context. |
| process_info_id | Process info identifier. |
| section_number | Capture section number. |
| uuid_size | Output parameter for the size of the UUID. |
| const nstime_t *(* packet_provider_funcs::get_start_ts) (struct packet_provider_data *prov) |
Get the start timestamp of the capture session.
| prov | Packet provider context. |