|
Wireshark 4.7.0
The Wireshark network protocol analyzer
|
#include <epan/epan.h>#include <epan/column-info.h>#include <epan/dfilter/dfilter.h>#include <epan/frame_data.h>#include <epan/frame_data_sequence.h>#include <wiretap/wtap.h>#include <wsutil/file_compressed.h>#include <wsutil/buffer.h>Go to the source code of this file.
Classes | |
| struct | packet_provider_data |
| struct | _capture_file |
Typedefs | |
| typedef struct _capture_file | capture_file |
Functions | |
| WS_DLL_PUBLIC void | cap_file_init (capture_file *cf) |
| Initialize a capture file structure. | |
| WS_DLL_PUBLIC const nstime_t * | cap_file_provider_get_frame_ts (struct packet_provider_data *prov, uint32_t frame_num) |
| WS_DLL_PUBLIC const nstime_t * | cap_file_provider_get_start_ts (struct packet_provider_data *prov) |
| WS_DLL_PUBLIC const nstime_t * | cap_file_provider_get_end_ts (struct packet_provider_data *prov) |
| Get the end timestamp of a capture file. | |
| WS_DLL_PUBLIC const char * | cap_file_provider_get_interface_name (struct packet_provider_data *prov, uint32_t interface_id, unsigned section_number) |
| Retrieves the name of a network interface from a capture file. | |
| WS_DLL_PUBLIC const char * | cap_file_provider_get_interface_description (struct packet_provider_data *prov, uint32_t interface_id, unsigned section_number) |
| Retrieves a description for a network interface from a capture file. | |
| WS_DLL_PUBLIC int32_t | cap_file_provider_get_process_id (struct packet_provider_data *prov, uint32_t process_info_id, unsigned section_number) |
| Retrieves the process ID associated with a given process information ID and section number. | |
| WS_DLL_PUBLIC const char * | cap_file_provider_get_process_name (struct packet_provider_data *prov, uint32_t process_info_id, unsigned section_number) |
| WS_DLL_PUBLIC const uint8_t * | cap_file_provider_get_process_uuid (struct packet_provider_data *prov, uint32_t process_info_id, unsigned section_number, size_t *uuid_size) |
| Retrieves the UUID of a process from a capture file. | |
| WS_DLL_PUBLIC wtap_block_t | cap_file_provider_get_modified_block (struct packet_provider_data *prov, const frame_data *fd) |
| WS_DLL_PUBLIC void | cap_file_provider_set_modified_block (struct packet_provider_data *prov, frame_data *fd, const wtap_block_t new_block) |
| Set a modified block for a frame in the packet provider. | |
capture_file definition & GUI-independent manipulation
Wireshark - Network traffic analyzer By Gerald Combs geral.nosp@m.d@wi.nosp@m.resha.nosp@m.rk.o.nosp@m.rg Copyright 1998 Gerald Combs
SPDX-License-Identifier: GPL-2.0-or-later
| WS_DLL_PUBLIC void cap_file_init | ( | capture_file * | cf | ) |
Initialize a capture file structure.
| cf | Pointer to the capture file structure to be initialized. |
| WS_DLL_PUBLIC const nstime_t * cap_file_provider_get_end_ts | ( | struct packet_provider_data * | prov | ) |
Get the end timestamp of a capture file.
| prov | Pointer to the packet provider data structure. |
| WS_DLL_PUBLIC const char * cap_file_provider_get_interface_description | ( | struct packet_provider_data * | prov, |
| uint32_t | interface_id, | ||
| unsigned | section_number | ||
| ) |
Retrieves a description for a network interface from a capture file.
| prov | Pointer to the packet provider data structure. |
| interface_id | The ID of the network interface. |
| section_number | The section number in the capture file. |
| WS_DLL_PUBLIC const char * cap_file_provider_get_interface_name | ( | struct packet_provider_data * | prov, |
| uint32_t | interface_id, | ||
| unsigned | section_number | ||
| ) |
Retrieves the name of a network interface from a capture file.
| prov | Pointer to the packet provider data structure. |
| interface_id | The ID of the interface to retrieve. |
| section_number | The section number in the capture file. |
| WS_DLL_PUBLIC int32_t cap_file_provider_get_process_id | ( | struct packet_provider_data * | prov, |
| uint32_t | process_info_id, | ||
| unsigned | section_number | ||
| ) |
Retrieves the process ID associated with a given process information ID and section number.
| prov | Pointer to the packet provider data structure. |
| process_info_id | The ID of the process information. |
| section_number | The section number within the capture file. |
| WS_DLL_PUBLIC const uint8_t * cap_file_provider_get_process_uuid | ( | struct packet_provider_data * | prov, |
| uint32_t | process_info_id, | ||
| unsigned | section_number, | ||
| size_t * | uuid_size | ||
| ) |
Retrieves the UUID of a process from a capture file.
| prov | Pointer to the packet provider data structure. |
| process_info_id | Identifier for the process information. |
| section_number | The section number (currently unused). |
| uuid_size | Pointer to store the size of the UUID. |
| WS_DLL_PUBLIC void cap_file_provider_set_modified_block | ( | struct packet_provider_data * | prov, |
| frame_data * | fd, | ||
| const wtap_block_t | new_block | ||
| ) |
Set a modified block for a frame in the packet provider.
This function updates or inserts a new wtap_block_t into the frames_modified_blocks tree of the packet_provider_data structure.
| prov | Pointer to the packet_provider_data structure. |
| fd | Pointer to the frame_data structure representing the frame. |
| new_block | The new wtap_block_t to be set for the frame. |