14#ifndef __WSUTIL_PACKET_ENDPOINTS_H__
15#define __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