|
Wireshark 4.7.0
The Wireshark network protocol analyzer
|
Go to the source code of this file.
Classes | |
| struct | packet_counts |
| struct | _capture_packet_info |
| Accumulates per-protocol packet counts during a live capture session. More... | |
Typedefs | |
| typedef struct _capture_packet_info | capture_packet_info_t |
| Accumulates per-protocol packet counts during a live capture session. | |
| typedef struct capture_dissector_handle * | capture_dissector_handle_t |
| typedef bool(* | capture_dissector_t) (const uint8_t *pd, int offset, int len, capture_packet_info_t *cpinfo, const union wtap_pseudo_header *pseudo_header) |
Functions | |
| WS_DLL_PUBLIC void | register_capture_dissector_table (const char *name, const char *ui_name) |
| Register a capture sub-dissector table. | |
| WS_DLL_PUBLIC capture_dissector_handle_t | create_capture_dissector_handle (capture_dissector_t dissector, const int proto) |
| Create an anonymous handle for a capture dissector. | |
| WS_DLL_PUBLIC capture_dissector_handle_t | find_capture_dissector (const char *name) |
| Find a dissector by name. | |
| WS_DLL_PUBLIC capture_dissector_handle_t | register_capture_dissector (const char *name, capture_dissector_t dissector, int proto) |
| Register a new capture dissector. | |
| WS_DLL_PUBLIC void | capture_dissector_add_uint (const char *name, const uint32_t pattern, capture_dissector_handle_t handle) |
| Add an entry to a uint capture dissector table. | |
| WS_DLL_PUBLIC bool | try_capture_dissector (const char *name, const uint32_t pattern, const uint8_t *pd, int offset, int len, capture_packet_info_t *cpinfo, const union wtap_pseudo_header *pseudo_header) |
| Look for a given value in a given uint capture dissector table and, if found, call the dissector with the arguments supplied, and return true, otherwise return false. | |
| WS_DLL_PUBLIC bool | call_capture_dissector (capture_dissector_handle_t handle, const uint8_t *pd, int offset, int len, capture_packet_info_t *cpinfo, const union wtap_pseudo_header *pseudo_header) |
| Call a capture dissector through a handle. If handle is value return true, otherwise return false. | |
| WS_DLL_PUBLIC uint64_t | capture_dissector_get_count (packet_counts *counts, const int proto) |
| Get current capture packet count for a particular protocol. | |
| WS_DLL_PUBLIC void | capture_dissector_increment_count (capture_packet_info_t *cpinfo, const int proto) |
| Increment packet capture count by 1 for a particular protocol. | |
| void | capture_dissector_init (void) |
| Initialize capture dissectors. | |
| void | capture_dissector_cleanup (void) |
| Cleanup capture dissectors. | |
| typedef bool(* capture_dissector_t) (const uint8_t *pd, int offset, int len, capture_packet_info_t *cpinfo, const union wtap_pseudo_header *pseudo_header) |
callback function definition for capture dissectors
| WS_DLL_PUBLIC bool call_capture_dissector | ( | capture_dissector_handle_t | handle, |
| const uint8_t * | pd, | ||
| int | offset, | ||
| int | len, | ||
| capture_packet_info_t * | cpinfo, | ||
| const union wtap_pseudo_header * | pseudo_header | ||
| ) |
Call a capture dissector through a handle. If handle is value return true, otherwise return false.
| [in] | handle | Capture dissector handle |
| [in] | pd | Data buffer of captured bytes |
| [in] | offset | Current offset into pd |
| [in] | len | Length of pd |
| [in] | cpinfo | Capture statistics |
| [in] | pseudo_header | Wiretap pseudo header information |
| WS_DLL_PUBLIC void capture_dissector_add_uint | ( | const char * | name, |
| const uint32_t | pattern, | ||
| capture_dissector_handle_t | handle | ||
| ) |
Add an entry to a uint capture dissector table.
| [in] | name | Name of capture dissector table |
| [in] | pattern | Numerical value associated with capture dissector |
| [in] | handle | Handle to capture dissector |
| WS_DLL_PUBLIC uint64_t capture_dissector_get_count | ( | packet_counts * | counts, |
| const int | proto | ||
| ) |
Get current capture packet count for a particular protocol.
| [in] | counts | Packet count structure |
| [in] | proto | Protocol to retrieve packet count from |
| WS_DLL_PUBLIC void capture_dissector_increment_count | ( | capture_packet_info_t * | cpinfo, |
| const int | proto | ||
| ) |
Increment packet capture count by 1 for a particular protocol.
| [in] | cpinfo | Capture statistics |
| [in] | proto | Protocol to increment packet count |
| WS_DLL_PUBLIC capture_dissector_handle_t create_capture_dissector_handle | ( | capture_dissector_t | dissector, |
| const int | proto | ||
| ) |
Create an anonymous handle for a capture dissector.
| [in] | dissector | capture dissector function. |
| [in] | proto | Protocol associated with capture dissector function. |
| WS_DLL_PUBLIC capture_dissector_handle_t find_capture_dissector | ( | const char * | name | ) |
Find a dissector by name.
| [in] | name | Name of capture dissector |
| WS_DLL_PUBLIC capture_dissector_handle_t register_capture_dissector | ( | const char * | name, |
| capture_dissector_t | dissector, | ||
| int | proto | ||
| ) |
Register a new capture dissector.
| [in] | name | Name of capture dissector function. |
| [in] | dissector | capture dissector function. |
| [in] | proto | Protocol associated with capture dissector function. |
| WS_DLL_PUBLIC void register_capture_dissector_table | ( | const char * | name, |
| const char * | ui_name | ||
| ) |
Register a capture sub-dissector table.
| [in] | name | Name of capture sub-dissector table. |
| [in] | ui_name | Name string used when referring to capture sub-dissector table in UI. |
| WS_DLL_PUBLIC bool try_capture_dissector | ( | const char * | name, |
| const uint32_t | pattern, | ||
| const uint8_t * | pd, | ||
| int | offset, | ||
| int | len, | ||
| capture_packet_info_t * | cpinfo, | ||
| const union wtap_pseudo_header * | pseudo_header | ||
| ) |
Look for a given value in a given uint capture dissector table and, if found, call the dissector with the arguments supplied, and return true, otherwise return false.
| [in] | name | Name of capture dissector table |
| [in] | pattern | Numerical value associated with capture dissector |
| [in] | pd | Data buffer of captured bytes |
| [in] | offset | Current offset into pd |
| [in] | len | Length of pd |
| [in] | cpinfo | Capture statistics |
| [in] | pseudo_header | Wiretap pseudo header information |