Wireshark 5.1.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
packet_endpoints.h
Go to the documentation of this file.
1
13
14#ifndef __WSUTIL_PACKET_ENDPOINTS_H__
15#define __WSUTIL_PACKET_ENDPOINTS_H__
16
17#include <wireshark.h>
19
20#ifdef __cplusplus
21extern "C" {
22#endif /* __cplusplus */
23
30
39WS_DLL_PUBLIC bool
41
58WS_DLL_PUBLIC bool
59ws_packet_endpoints_parse(int linktype, const uint8_t *data, size_t len,
60 ws_packet_endpoints_t *endpoints);
61
62#ifdef __cplusplus
63}
64#endif /* __cplusplus */
65
66#endif /* __WSUTIL_PACKET_ENDPOINTS_H__ */
struct ws_packet_endpoints ws_packet_endpoints_t
WS_DLL_PUBLIC bool ws_packet_endpoints_linktype_supported(int linktype)
Whether packets with a link-layer header type can be parsed.
Definition packet_endpoints.c:51
WS_DLL_PUBLIC bool ws_packet_endpoints_parse(int linktype, const uint8_t *data, size_t len, ws_packet_endpoints_t *endpoints)
Find the endpoints of a TCP or UDP packet.
Definition packet_endpoints.c:124
struct ws_socket_endpoint ws_socket_endpoint_t
One end of a socket: an IPv4 or IPv6 address and a port.
ws_process_lookup_protocol_t
The transport protocols of the sockets that can be looked up.
Definition process_lookup.h:51
Definition packet_endpoints.h:25
ws_socket_endpoint_t src
Definition packet_endpoints.h:27
ws_socket_endpoint_t dst
Definition packet_endpoints.h:28
ws_process_lookup_protocol_t protocol
Definition packet_endpoints.h:26