Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[15482] UDPv6 support for fast-discovery-server tool and ROS_DISCOVERY_SERVER #2948

Merged
merged 15 commits into from
Sep 22, 2022

Conversation

MiguelBarro
Copy link
Contributor

@MiguelBarro MiguelBarro commented Sep 10, 2022

Description

ROS_DISCOVERY_SERVER

  • Now supports IPv6 addresses for UDP.
  • The DNS names can be decorated to specify which address family to use if IPv4 and IPv6 addresses are available.

fast-discovery-server

  • Now IPv6 addresses can be specified at the cli.
  • DNS resolution supports IPv6 but available IPv4 addresses will take precedence for backward compatibility.

Testing has been updated to take into account IPv6 addresses.

Documentation eProsima/Fast-DDS-docs#401

Contributor Checklist

  • Commit messages follow the project guidelines.
  • The code follows the style guidelines of this project.
  • Tests that thoroughly check the new feature have been added/Regression tests checking the bug and its fix have been added.
  • Any new/modified methods have been properly documented using Doxygen.
  • Fast DDS test suite has been run locally.
  • Changes are ABI compatible.
  • Changes are API compatible.
  • Documentation builds and tests pass locally.
  • New feature has been added to the versions.md file (if applicable).
  • New feature has been documented/Current behavior is correctly described in the documentation.

Reviewer Checklist

  • Check contributor checklist is correct.
  • Check CI results: changes do not issue any warning.
  • Check CI results: failing tests are unrelated with the changes.

@MiguelBarro MiguelBarro self-assigned this Sep 10, 2022
Miguel Barro added 10 commits September 10, 2022 16:43
Signed-off-by: Miguel Barro <miguelbarro@eprosima.com>
Signed-off-by: Miguel Barro <miguelbarro@eprosima.com>
Signed-off-by: Miguel Barro <miguelbarro@eprosima.com>
Signed-off-by: Miguel Barro <miguelbarro@eprosima.com>
Signed-off-by: Miguel Barro <miguelbarro@eprosima.com>
…e environment variable

Signed-off-by: Miguel Barro <miguelbarro@eprosima.com>
Signed-off-by: Miguel Barro <miguelbarro@eprosima.com>
…ser.h

Signed-off-by: Miguel Barro <miguelbarro@eprosima.com>
Signed-off-by: Miguel Barro <miguelbarro@eprosima.com>
Signed-off-by: Miguel Barro <miguelbarro@eprosima.com>
@MiguelBarro MiguelBarro force-pushed the feature/ros_env_var/ipv6 branch from dfa8035 to 23aba1e Compare September 10, 2022 14:45
Miguel Barro added 2 commits September 10, 2022 16:57
Signed-off-by: Miguel Barro <miguelbarro@eprosima.com>
Signed-off-by: Miguel Barro <miguelbarro@eprosima.com>
@MiguelBarro MiguelBarro force-pushed the feature/ros_env_var/ipv6 branch from 23aba1e to ffddee6 Compare September 10, 2022 14:59
@MiguelBarro
Copy link
Contributor Author

@richiprosima Please test this for me 🤯

Signed-off-by: Miguel Barro <miguelbarro@eprosima.com>
@MiguelBarro
Copy link
Contributor Author

@richiprosima Please test this for me 🤯

Signed-off-by: Miguel Barro <miguelbarro@eprosima.com>
@MiguelBarro
Copy link
Contributor Author

@richiprosima Please, I'm iterating, test linux 🙄

@@ -691,7 +699,7 @@ void set_server_qos(

void set_environment_variable()
{
std::string environment_servers = "84.22.253.128:8888;;localhost:1234";
std::string environment_servers = "84.22.253.128:8888;;UDPv4:[localhost]:1234;[2a02:ec80:600:ed1a::3]:8783";
Copy link
Contributor

@jsan-rt jsan-rt Sep 19, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would add a check that showed that using a single DNS entry both an IPv4 locator and an IPv6 locator are added, along with the required UDPv6 transport.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And here it is: ParticipantTests.SimpleParticipantRemoteServerListConfigurationDNS

Signed-off-by: Miguel Barro <miguelbarro@eprosima.com>
@MiguelBarro
Copy link
Contributor Author

@richiprosima Please test this for me 🤯

@MiguelBarro MiguelBarro requested a review from jsan-rt September 21, 2022 13:29
Copy link
Contributor

@jsan-rt jsan-rt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@MiguelCompany MiguelCompany merged commit 02c410c into master Sep 22, 2022
@MiguelCompany MiguelCompany deleted the feature/ros_env_var/ipv6 branch September 22, 2022 06:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants