Skip to content

ryu_ldn::ldn::ProxyConnection

Entry in the proxy connection table.

Represents a single virtual P2P connection being tunneled.

Type: uint32_t

Source IPv4 address.

Type: uint16_t

Source port.

Type: uint32_t

Destination IPv4 address.

Type: uint16_t

Destination port.

Type: protocol::ProtocolType

TCP or UDP.

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

bool matches(const protocol::ProxyInfo & info)

Check if this connection matches a ProxyInfo.

Parameters:

  • info (const protocol::ProxyInfo &)

Returns: bool