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

don't exclude NATed connections in mapping to processes #2978

Merged
merged 1 commit into from
Dec 15, 2017
Merged

Conversation

rade
Copy link
Member

@rade rade commented Dec 12, 2017

We used to ignore source endpoints that are associated with multiple destination endpoints, which is a partial workaround for our inability to correctly represent two connections from the same source ip/port
but different processes, or the same destination ip/port but different processes. See #2665.

However, that condition is too coarse. In particular, we end up ignoring endpoints that are connected to NATed destinations, since the latter are represented by two (or more) endpoints.

The change here corrects that.

Fixes #2943 (or, rather, it fixes the bit that isn't covered by other issues).

@rade rade requested a review from bboreham December 12, 2017 08:10
if len(n.Adjacency) < 2 {
return false
}
realEndpointID := ""

This comment was marked as abuse.

This comment was marked as abuse.

endpointID = copyID
}
}
if realEndpointID != "" && realEndpointID != endpointID {

This comment was marked as abuse.

This comment was marked as abuse.

We used to ignore source endpoints that are associated with multiple
destination endpoints, which is a partial workaround for our inability
to correctly represent two connections from the same source ip/port
but different processes, or the same destination ip/port but different
processes. See #2665.

However, that condition is too coarse. In particular, we end up
ignoring endpoints that are connected to NATed destinations, since the
latter are represented by two (or more) endpoints.

The change here corrects that.
@rade
Copy link
Member Author

rade commented Dec 15, 2017

@bboreham PTAL

@rade rade merged commit ae09b1c into master Dec 15, 2017
@rade rade deleted the 2943-map-nats branch December 25, 2017 10:15
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.

no connections between containers on GKE
2 participants