[18002] Internal refactor on port handling (backport #3440)
Description
This PR refactors the constructor of RTPSParticipantImpl, and changes the calculation of the ports used when set to 0 on the input locators.
@Mergifyio backport 2.13.x 2.10.x 2.6.x
Contributor Checklist
-
[x] Commit messages follow the project guidelines.
-
[x] The code follows the style guidelines of this project.
-
N/A Tests that thoroughly check the new feature have been added/Regression tests checking the bug and its fix have been added; the added tests pass locally
-
N/A: Any new/modified methods have been properly documented using Doxygen.
-
[x] Changes are ABI compatible.
-
[x] Changes are API compatible.
-
N/A New feature has been added to the
versions.mdfile (if applicable). -
N/A New feature has been documented/Current behavior is correctly described in the documentation.
-
[x] Applicable backports have been included in the description.
Reviewer Checklist
- [x] The PR has a milestone assigned.
- [x] Check contributor checklist is correct.
- [x] Check CI results: changes do not issue any warning.
- [x] Check CI results: failing tests are unrelated with the changes.
This is an automatic backport of pull request #3440 done by [Mergify](https://mergify.com).
Cherry-pick of ea5af48d0d6f4c4e71e4ca3ad421b3b78fc1fffe has failed:
On branch mergify/bp/2.6.x/pr-3440
Your branch is up to date with 'origin/2.6.x'.
You are currently cherry-picking commit ea5af48d0.
(fix conflicts and run "git cherry-pick --continue")
(use "git cherry-pick --skip" to skip this patch)
(use "git cherry-pick --abort" to cancel the cherry-pick operation)
Changes to be committed:
modified: src/cpp/rtps/network/NetworkFactory.cpp
Unmerged paths:
(use "git add <file>..." to mark resolution)
both modified: include/fastdds/rtps/network/NetworkFactory.h
both modified: src/cpp/rtps/participant/RTPSParticipantImpl.cpp
both modified: src/cpp/rtps/participant/RTPSParticipantImpl.h
both modified: test/blackbox/common/BlackboxTestsTransportSHM.cpp
To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally
Internally agree to close this PR