ryu_ldn::ldn::ProxyConnection
ryu_ldn::ldn::ProxyConnection
Section titled “ryu_ldn::ldn::ProxyConnection”Entry in the proxy connection table.
Represents a single virtual P2P connection being tunneled.
Members
Section titled “Members”source_ipv4
Section titled “source_ipv4”Type: uint32_t
Source IPv4 address.
source_port
Section titled “source_port”Type: uint16_t
Source port.
dest_ipv4
Section titled “dest_ipv4”Type: uint32_t
Destination IPv4 address.
dest_port
Section titled “dest_port”Type: uint16_t
Destination port.
protocol
Section titled “protocol”Type: protocol::ProtocolType
TCP or UDP.
Methods
Section titled “Methods”matches
Section titled “matches”bool matches(uint32_t src_ip, uint16_t src_port, uint32_t dst_ip, uint16_t dst_port, protocol::ProtocolType proto)Check if this connection matches the given parameters.
Parameters:
src_ip(uint32_t)src_port(uint16_t)dst_ip(uint32_t)dst_port(uint16_t)proto(protocol::ProtocolType)
Returns: bool
matches
Section titled “matches”bool matches(const protocol::ProxyInfo & info)Check if this connection matches a ProxyInfo.
Parameters:
info(const protocol::ProxyInfo &)
Returns: bool