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

Ignore conntracked connections on which we never saw an update #1466

Merged
merged 1 commit into from
May 11, 2016

Conversation

tomwilkie
Copy link
Contributor

Fixes #1462

@tomwilkie tomwilkie self-assigned this May 10, 2016
@2opremio
Copy link
Contributor

Shouldn't we only be paying attention to ESTABLISHED events?

@tomwilkie
Copy link
Contributor Author

Shouldn't we only be paying attention to ESTABLISHED events?

Yeah I thought about that, but the way it works it to buffer old flows that came and went during the reporting period. So those connections would never be ESTABLISHED.

@tomwilkie tomwilkie force-pushed the 1462-edge-direction branch from b2e8221 to 281139a Compare May 10, 2016 16:28
@tomwilkie tomwilkie changed the title Ignore conntrack'd flows in state SYN_SENT. Ignore conntracked connections on which we never saw an update May 10, 2016
@tomwilkie tomwilkie force-pushed the 1462-edge-direction branch from 281139a to 84c58c3 Compare May 10, 2016 18:10
@@ -60,6 +60,10 @@ func (n natMapper) applyNAT(rpt report.Report, scope string) {
if !ok {
return
}
// Don't apply nat mappings to conntracked connections
if _, procspied := node.Latest.Lookup(Procspied); !procspied {

This comment was marked as abuse.

This comment was marked as abuse.

This comment was marked as abuse.

@tomwilkie tomwilkie force-pushed the 1462-edge-direction branch from 84c58c3 to 3fda38b Compare May 11, 2016 12:36
@tomwilkie tomwilkie assigned 2opremio and unassigned tomwilkie May 11, 2016
@2opremio
Copy link
Contributor

LGTM

@tomwilkie tomwilkie merged commit 23c5e9f into master May 11, 2016
@tomwilkie tomwilkie deleted the 1462-edge-direction branch May 11, 2016 13:30
errordeveloper pushed a commit that referenced this pull request May 11, 2016
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