Skip to content

Fix fill local IP [13390] #2389

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

Merged
merged 5 commits into from
Jan 18, 2022
Merged

Fix fill local IP [13390] #2389

merged 5 commits into from
Jan 18, 2022

Conversation

rsanchez15
Copy link
Contributor

@rsanchez15 rsanchez15 commented Jan 7, 2022

This PR fix the fill local IP functions defining the IP kind before filling the locator with the given IP.

@rsanchez15 rsanchez15 changed the title Fix fill local IPv6 Fix fill local IP Jan 7, 2022
@rsanchez15 rsanchez15 changed the title Fix fill local IP Fix fill local IP [13390] Jan 7, 2022
Copy link

@EduPonz EduPonz left a comment

Choose a reason for hiding this comment

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

I'd really appreciate a TCPv6 communication blackbox test to check that it works at least locally

@@ -328,8 +328,8 @@ bool TCPv4Transport::compare_locator_ip_and_port(
void TCPv4Transport::fill_local_ip(
Locator& loc) const
{
IPLocator::setIPv4(loc, "127.0.0.1");
loc.kind = LOCATOR_KIND_TCPv4;
Copy link

Choose a reason for hiding this comment

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

In general,

I suggest using the kind() getter inhereted from TransportInterface

Copy link

@EduPonz EduPonz left a comment

Choose a reason for hiding this comment

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

LGTM with green CI

@EduPonz
Copy link

EduPonz commented Jan 18, 2022

@richiprosima please test Linux

@EduPonz EduPonz merged commit c5f2e72 into master Jan 18, 2022
@EduPonz EduPonz deleted the hotfix/ipv6 branch January 18, 2022 15:16
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.

2 participants