Skip to content

Commit

Permalink
Uncrustify
Browse files Browse the repository at this point in the history
Signed-off-by: Irene Bandera <[email protected]>
  • Loading branch information
irenebm committed Aug 26, 2024
1 parent 80d995b commit ce4eac6
Showing 1 changed file with 14 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ DiscoveryServerParticipant::reckon_participant_attributes_(
has_listening_udp_ipv4 = true;

auto descriptor_tmp =
create_descriptor<eprosima::fastdds::rtps::UDPv4TransportDescriptor>(configuration->whitelist);
create_descriptor<eprosima::fastdds::rtps::UDPv4TransportDescriptor>(configuration->whitelist);
descriptor = descriptor_tmp;

eprosima::fastdds::rtps::IPLocator::setIPv4(listening_locator, address.ip());
Expand All @@ -103,7 +103,7 @@ DiscoveryServerParticipant::reckon_participant_attributes_(
has_listening_udp_ipv6 = true;

auto descriptor_tmp =
create_descriptor<eprosima::fastdds::rtps::UDPv6TransportDescriptor>(configuration->whitelist);
create_descriptor<eprosima::fastdds::rtps::UDPv6TransportDescriptor>(configuration->whitelist);
descriptor = descriptor_tmp;

eprosima::fastdds::rtps::IPLocator::setIPv6(listening_locator, address.ip());
Expand Down Expand Up @@ -148,7 +148,8 @@ DiscoveryServerParticipant::reckon_participant_attributes_(
else
{
descriptor_tmp =
create_descriptor<eprosima::fastdds::rtps::TCPv4TransportDescriptor>(configuration->whitelist);
create_descriptor<eprosima::fastdds::rtps::TCPv4TransportDescriptor>(
configuration->whitelist);

descriptor_tmp->add_listener_port(address.port());
descriptor_tmp->set_WAN_address(address.ip());
Expand All @@ -174,7 +175,7 @@ DiscoveryServerParticipant::reckon_participant_attributes_(
has_listening_tcp_ipv6 = true;

auto descriptor_tmp =
create_descriptor<eprosima::fastdds::rtps::TCPv6TransportDescriptor>(configuration->whitelist);
create_descriptor<eprosima::fastdds::rtps::TCPv6TransportDescriptor>(configuration->whitelist);
descriptor_tmp->add_listener_port(address.port());

// Enable TLS
Expand Down Expand Up @@ -251,7 +252,8 @@ DiscoveryServerParticipant::reckon_participant_attributes_(
{
has_connection_descriptor = true;
auto descriptor_tmp =
create_descriptor<eprosima::fastdds::rtps::UDPv4TransportDescriptor>(configuration->whitelist);
create_descriptor<eprosima::fastdds::rtps::UDPv4TransportDescriptor>(
configuration->whitelist);
// descriptor_tmp->interfaceWhiteList.push_back(address.ip());
descriptor = descriptor_tmp;
}
Expand All @@ -267,7 +269,8 @@ DiscoveryServerParticipant::reckon_participant_attributes_(
{
has_connection_descriptor = true;
auto descriptor_tmp =
create_descriptor<eprosima::fastdds::rtps::UDPv6TransportDescriptor>(configuration->whitelist);
create_descriptor<eprosima::fastdds::rtps::UDPv6TransportDescriptor>(
configuration->whitelist);
// descriptor_tmp->interfaceWhiteList.push_back(address.ip());
descriptor = descriptor_tmp;
}
Expand All @@ -283,7 +286,8 @@ DiscoveryServerParticipant::reckon_participant_attributes_(
{
has_connection_descriptor = true;
auto descriptor_tmp =
create_descriptor<eprosima::fastdds::rtps::TCPv4TransportDescriptor>(configuration->whitelist);
create_descriptor<eprosima::fastdds::rtps::TCPv4TransportDescriptor>(
configuration->whitelist);
descriptor_tmp->add_listener_port(0);
// descriptor_tmp->interfaceWhiteList.push_back(address.ip());

Expand All @@ -308,7 +312,8 @@ DiscoveryServerParticipant::reckon_participant_attributes_(
{
has_connection_descriptor = true;
auto descriptor_tmp =
create_descriptor<eprosima::fastdds::rtps::TCPv6TransportDescriptor>(configuration->whitelist);
create_descriptor<eprosima::fastdds::rtps::TCPv6TransportDescriptor>(
configuration->whitelist);
// descriptor_tmp->add_listener_port(0);
descriptor_tmp->interfaceWhiteList.push_back(address.ip());

Expand All @@ -335,7 +340,7 @@ DiscoveryServerParticipant::reckon_participant_attributes_(
{
// Set participant as DS CLIENT
params.builtin.discovery_config.discoveryProtocol =
eprosima::fastdds::rtps::DiscoveryProtocol::SUPER_CLIENT;
eprosima::fastdds::rtps::DiscoveryProtocol::SUPER_CLIENT;

// Add descriptor
params.userTransports.push_back(descriptor);
Expand Down

0 comments on commit ce4eac6

Please sign in to comment.