-
Notifications
You must be signed in to change notification settings - Fork 783
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
[20238] Enabling multiple interfaces through whitelist in TCP servers #4297
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: cferreiragonz <[email protected]>
Signed-off-by: cferreiragonz <[email protected]>
Signed-off-by: cferreiragonz <[email protected]>
cferreiragonz
force-pushed
the
bugfix/wifi-eth-whitelist
branch
from
February 19, 2024 08:23
0fba001
to
6e523a2
Compare
Signed-off-by: cferreiragonz <[email protected]>
13 tasks
@richiprosima please test this |
Signed-off-by: cferreiragonz <[email protected]>
MiguelCompany
requested changes
Feb 20, 2024
Signed-off-by: cferreiragonz <[email protected]>
…ult) Signed-off-by: cferreiragonz <[email protected]>
MiguelCompany
approved these changes
Feb 20, 2024
EduPonz
added
ci-pending
PR which CI is running
and removed
needs-review
PR that is ready to be reviewed
labels
Feb 20, 2024
@richiprosima please test this |
@Mergifyio backport 2.12.x 2.10.x 2.6.x |
✅ Backports have been created
|
EduPonz
added
ready-to-merge
Ready to be merged. CI and changes have been reviewed and approved.
and removed
ci-pending
PR which CI is running
labels
Feb 21, 2024
cferreiragonz
added a commit
that referenced
this pull request
Feb 28, 2024
* Refs #20238: Add whitelist test in TCPv4 Signed-off-by: cferreiragonz <[email protected]> * Refs #20238: Add whitelist test in TCPv6 Signed-off-by: cferreiragonz <[email protected]> * Refs #20238: Adding interface to locator if whitelist is not empty Signed-off-by: cferreiragonz <[email protected]> * Refs #20238: Uncrustify Signed-off-by: cferreiragonz <[email protected]> * Refs #20238: Fix build in Windows Signed-off-by: cferreiragonz <[email protected]> * Refs #20238: Apply suggestions Signed-off-by: cferreiragonz <[email protected]> * Refs #20238: Remove repeated addition of listener port (added by default) Signed-off-by: cferreiragonz <[email protected]> --------- Signed-off-by: cferreiragonz <[email protected]> (cherry picked from commit 5f65a65)
cferreiragonz
added a commit
that referenced
this pull request
Mar 1, 2024
* Refs #20238: Add whitelist test in TCPv4 Signed-off-by: cferreiragonz <[email protected]> * Refs #20238: Add whitelist test in TCPv6 Signed-off-by: cferreiragonz <[email protected]> * Refs #20238: Adding interface to locator if whitelist is not empty Signed-off-by: cferreiragonz <[email protected]> * Refs #20238: Uncrustify Signed-off-by: cferreiragonz <[email protected]> * Refs #20238: Fix build in Windows Signed-off-by: cferreiragonz <[email protected]> * Refs #20238: Apply suggestions Signed-off-by: cferreiragonz <[email protected]> * Refs #20238: Remove repeated addition of listener port (added by default) Signed-off-by: cferreiragonz <[email protected]> --------- Signed-off-by: cferreiragonz <[email protected]> (cherry picked from commit 5f65a65)
cferreiragonz
added a commit
that referenced
this pull request
Mar 1, 2024
* Refs #20238: Add whitelist test in TCPv4 Signed-off-by: cferreiragonz <[email protected]> * Refs #20238: Add whitelist test in TCPv6 Signed-off-by: cferreiragonz <[email protected]> * Refs #20238: Adding interface to locator if whitelist is not empty Signed-off-by: cferreiragonz <[email protected]> * Refs #20238: Uncrustify Signed-off-by: cferreiragonz <[email protected]> * Refs #20238: Fix build in Windows Signed-off-by: cferreiragonz <[email protected]> * Refs #20238: Apply suggestions Signed-off-by: cferreiragonz <[email protected]> * Refs #20238: Remove repeated addition of listener port (added by default) Signed-off-by: cferreiragonz <[email protected]> --------- Signed-off-by: cferreiragonz <[email protected]> (cherry picked from commit 5f65a65)
MiguelCompany
pushed a commit
that referenced
this pull request
Mar 8, 2024
#4413) * TCP Client&Server Participant Decision-Making (#4277) * Refs #20180: Spelling fix Signed-off-by: cferreiragonz <[email protected]> * Refs #20180: Create function to check pending_logical_ports Signed-off-by: cferreiragonz <[email protected]> * Refs #20180: Add new TCP Connection type Signed-off-by: cferreiragonz <[email protected]> * Refs #20180: Add new method to enable TCP channel after connection in LARGE DATA Signed-off-by: cferreiragonz <[email protected]> * Refs #20180: Refactor OpenOutputChannel method Signed-off-by: cferreiragonz <[email protected]> * Refs #20180: Include LARGE DATA logic in SocketAccepted method Signed-off-by: cferreiragonz <[email protected]> * Refs #20180: Include LARGE DATA logic in processBindConnectionRequest method Signed-off-by: cferreiragonz <[email protected]> * Refs #20180: Add new TCP connection and methods SECURITY Signed-off-by: cferreiragonz <[email protected]> * Refs #20180: Add SECURITY support to OpenOutputChannel Signed-off-by: cferreiragonz <[email protected]> * Refs #20180: Include LARGE DATA logic in SecureSocketAccepted method Signed-off-by: cferreiragonz <[email protected]> * Refs #20180: Bugfix setting environment variable in tests Signed-off-by: cferreiragonz <[email protected]> * Refs #20180: Add multicast IPv6 to LARGE_DATA locator Signed-off-by: cferreiragonz <[email protected]> * Refs #20180: Add TCP test in LARGE_DATA Topology Signed-off-by: cferreiragonz <[email protected]> * Refs #20180: Clean code & Uncrustify Signed-off-by: cferreiragonz <[email protected]> * Refs #20180: Modified participant populated test Signed-off-by: Jesus Perez <[email protected]> * Refs #20180: Add new api to update channels Signed-off-by: cferreiragonz <[email protected]> * Refs #20180: Refactor OpenOutputChannel with new channel map Signed-off-by: cferreiragonz <[email protected]> * Refs #20180: Refactor bind_socket with new channel map Signed-off-by: cferreiragonz <[email protected]> * Refs #20180: Refactor SocketAccepted with new channel map (Revert to old behavior) Signed-off-by: cferreiragonz <[email protected]> * Refs #20180: Refactor CloseOutputChannel to support cases with new channel map Signed-off-by: cferreiragonz <[email protected]> * Refs #20180: Update Secure channel logic with new channel map Signed-off-by: cferreiragonz <[email protected]> * Refs #20180: Use same IPv6 as defaultMetatrafficMulticast Signed-off-by: cferreiragonz <[email protected]> * Refs #20180: Refactor using locator inside sender resource instead of channel Signed-off-by: cferreiragonz <[email protected]> * Refs #20180: Data races associated Signed-off-by: cferreiragonz <[email protected]> * Refs #20180: Apply suggestions to tests Signed-off-by: Jesus Perez <[email protected]> * Refs #20180: Add OpenLogicalPortRequest scenario before Bind Response is processed Signed-off-by: cferreiragonz <[email protected]> * Refs #20180. Remove unnecessary methods. Signed-off-by: Miguel Company <[email protected]> * Refs #20180. Early exit when logical_port is 0. Signed-off-by: Miguel Company <[email protected]> * Refs #20180. Refactor to avoid lambda. Signed-off-by: Miguel Company <[email protected]> * Refs #20180. Minor changes. Signed-off-by: Miguel Company <[email protected]> * Refs #20180. Simplify with WanToLanLocator. Signed-off-by: Miguel Company <[email protected]> * Refs #20180: Apply suggestions Signed-off-by: cferreiragonz <[email protected]> * Revert "Refs #20180: Add new TCP Connection type" This reverts commit 4b4eb4153553cfdbf007896ff524d3e904f722c9. Signed-off-by: cferreiragonz <[email protected]> * Refs #20180: Remove unnecessary lock Signed-off-by: cferreiragonz <[email protected]> * Revert "Refs #20180: Add new TCP connection and methods SECURITY" This reverts commit c69d92e56dcfab3c3c7287145a7a93e57947d3cb. Signed-off-by: cferreiragonz <[email protected]> * Refs #20180: Fix test (file descriptors limit) Signed-off-by: Jesus Perez <[email protected]> * Refs #20180: Uncrustify Signed-off-by: Jesus Perez <[email protected]> * Refs #20180. Fix port comparison. Signed-off-by: Miguel Company <[email protected]> Co-authored-by: Carlos Ferreira González <[email protected]> * Refs #20180: Fix double lock and update old test with current behavior Signed-off-by: Jesus Perez <[email protected]> * Refs #20180: Apply suggestions Signed-off-by: Jesus Perez <[email protected]> * Refs #20180: Fix windows test build Signed-off-by: Jesus Perez <[email protected]> * Refs #20180: Apply test suggestions Signed-off-by: Jesus Perez <[email protected]> * Refs #20180: Bugfix with cv in receiver_resources_ destruction Signed-off-by: cferreiragonz <[email protected]> * Refs #20180. Delete participant on failing ParticipantTests.ParticipantCreationWithBuiltinTransport Signed-off-by: Miguel Company <[email protected]> * Refs #20180. Do not use non_blocking_send on TCP transport for LARGE_DATA. Signed-off-by: Miguel Company <[email protected]> --------- Signed-off-by: cferreiragonz <[email protected]> Signed-off-by: Jesus Perez <[email protected]> Signed-off-by: Miguel Company <[email protected]> Co-authored-by: Jesus Perez <[email protected]> Co-authored-by: Miguel Company <[email protected]> (cherry picked from commit 709b140) # Conflicts: # test/blackbox/common/BlackboxTestsTransportTCP.cpp * Fix Conflicts Signed-off-by: cferreiragonz <[email protected]> * Enabling multiple interfaces through whitelist in TCP servers (#4297) * Refs #20238: Add whitelist test in TCPv4 Signed-off-by: cferreiragonz <[email protected]> * Refs #20238: Add whitelist test in TCPv6 Signed-off-by: cferreiragonz <[email protected]> * Refs #20238: Adding interface to locator if whitelist is not empty Signed-off-by: cferreiragonz <[email protected]> * Refs #20238: Uncrustify Signed-off-by: cferreiragonz <[email protected]> * Refs #20238: Fix build in Windows Signed-off-by: cferreiragonz <[email protected]> * Refs #20238: Apply suggestions Signed-off-by: cferreiragonz <[email protected]> * Refs #20238: Remove repeated addition of listener port (added by default) Signed-off-by: cferreiragonz <[email protected]> --------- Signed-off-by: cferreiragonz <[email protected]> (cherry picked from commit 5f65a65) * Fix conflicts Signed-off-by: cferreiragonz <[email protected]> --------- Signed-off-by: cferreiragonz <[email protected]> Co-authored-by: Carlos Ferreira González <[email protected]>
cferreiragonz
added a commit
that referenced
this pull request
Mar 12, 2024
* Refs #20238: Add whitelist test in TCPv4 Signed-off-by: cferreiragonz <[email protected]> * Refs #20238: Add whitelist test in TCPv6 Signed-off-by: cferreiragonz <[email protected]> * Refs #20238: Adding interface to locator if whitelist is not empty Signed-off-by: cferreiragonz <[email protected]> * Refs #20238: Uncrustify Signed-off-by: cferreiragonz <[email protected]> * Refs #20238: Fix build in Windows Signed-off-by: cferreiragonz <[email protected]> * Refs #20238: Apply suggestions Signed-off-by: cferreiragonz <[email protected]> * Refs #20238: Remove repeated addition of listener port (added by default) Signed-off-by: cferreiragonz <[email protected]> --------- Signed-off-by: cferreiragonz <[email protected]> (cherry picked from commit 5f65a65) Fix Ipv6 names Signed-off-by: cferreiragonz <[email protected]>
EduPonz
pushed a commit
that referenced
this pull request
Mar 13, 2024
…#4412) * Refs #20238: Add whitelist test in TCPv4 * Refs #20238: Add whitelist test in TCPv6 * Refs #20238: Adding interface to locator if whitelist is not empty * Refs #20238: Uncrustify * Refs #20238: Fix build in Windows * Refs #20238: Apply suggestions * Refs #20238: Remove repeated addition of listener port (added by default) --------- (cherry picked from commit 5f65a65) Fix Ipv6 names Signed-off-by: cferreiragonz <[email protected]> Co-authored-by: Carlos Ferreira González <[email protected]>
cferreiragonz
added a commit
that referenced
this pull request
Apr 1, 2024
* Refs #20238: Add whitelist test in TCPv4 Signed-off-by: cferreiragonz <[email protected]> * Refs #20238: Add whitelist test in TCPv6 Signed-off-by: cferreiragonz <[email protected]> * Refs #20238: Adding interface to locator if whitelist is not empty Signed-off-by: cferreiragonz <[email protected]> * Refs #20238: Uncrustify Signed-off-by: cferreiragonz <[email protected]> * Refs #20238: Fix build in Windows Signed-off-by: cferreiragonz <[email protected]> * Refs #20238: Apply suggestions Signed-off-by: cferreiragonz <[email protected]> * Refs #20238: Remove repeated addition of listener port (added by default) Signed-off-by: cferreiragonz <[email protected]> --------- Signed-off-by: cferreiragonz <[email protected]> (cherry picked from commit 5f65a65)
EduPonz
pushed a commit
that referenced
this pull request
Apr 10, 2024
…#4414) * Enabling multiple interfaces through whitelist in TCP servers (#4297) * Refs #20238: Add whitelist test in TCPv4 Signed-off-by: cferreiragonz <[email protected]> * Refs #20238: Add whitelist test in TCPv6 Signed-off-by: cferreiragonz <[email protected]> * Refs #20238: Adding interface to locator if whitelist is not empty Signed-off-by: cferreiragonz <[email protected]> * Refs #20238: Uncrustify Signed-off-by: cferreiragonz <[email protected]> * Refs #20238: Fix build in Windows Signed-off-by: cferreiragonz <[email protected]> * Refs #20238: Apply suggestions Signed-off-by: cferreiragonz <[email protected]> * Refs #20238: Remove repeated addition of listener port (added by default) Signed-off-by: cferreiragonz <[email protected]> --------- Signed-off-by: cferreiragonz <[email protected]> (cherry picked from commit 5f65a65) * Fix Conflicts pr-4217 Signed-off-by: cferreiragonz <[email protected]> --------- Signed-off-by: cferreiragonz <[email protected]> Co-authored-by: Carlos Ferreira González <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This pull request addresses a bug related to the initialization of TCP servers when multiple interfaces are added to the whitelist. The issue stemmed from the unnoticed overwriting of the acceptors_ map because of the comparison of locators without properly setting their addresses.
@Mergifyio backport 2.12.x 2.11.x 2.10.x 2.6.x
Contributor Checklist
versions.md
file (if applicable).Reviewer Checklist