Skip to content

Fix Conn.Get to correctly set IP family for partial IPv6 filters#46

Merged
ti-mo merged 1 commit intoti-mo:masterfrom
milan-zededa:fix-conn-get-for-ipv6
Jul 7, 2025
Merged

Fix Conn.Get to correctly set IP family for partial IPv6 filters#46
ti-mo merged 1 commit intoti-mo:masterfrom
milan-zededa:fix-conn-get-for-ipv6

Conversation

@milan-zededa
Copy link
Contributor

Conn.Get supports filters with only one of TupleOrig or TupleReply defined. However, when using such a partial filter with IPv6 addresses, the function failed to set the correct IP family (ProtoIPv6) in the netfilter header, resulting in the error:

netfilter query: netlink receive: invalid argument

This change updates the condition to set the protocol family to IPv6 if either TupleOrig or TupleReply uses an IPv6 address.

Conn.Get supports filters with only one of TupleOrig or TupleReply defined.
However, when using such a partial filter with IPv6 addresses, the function
failed to set the correct IP family (ProtoIPv6) in the netfilter header,
resulting in the error:

netfilter query: netlink receive: invalid argument

This change updates the condition to set the protocol family to IPv6 if
either TupleOrig or TupleReply uses an IPv6 address.

Signed-off-by: Milan Lenco <milan@zededa.com>
@ti-mo ti-mo merged commit c0d46dc into ti-mo:master Jul 7, 2025
6 checks passed
@ti-mo
Copy link
Owner

ti-mo commented Jul 7, 2025

Thanks for the patch!

@coveralls
Copy link

coveralls commented Jul 7, 2025

Pull Request Test Coverage Report for Build 16051692218

Details

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 91.552%

Totals Coverage Status
Change from base Build 14839537744: 0.0%
Covered Lines: 1333
Relevant Lines: 1456

💛 - Coveralls

milan-zededa added a commit to milan-zededa/eve-libs that referenced this pull request Jul 7, 2025
Library github.com/ti-mo/conntrack was patched to properly handle
conntrack retrieval for IPv6 entries.

This is the PR with the fix:
ti-mo/conntrack#46

We use this library inside nettrace to capture information provided by
conntrack, such as packets/bytes seen in both directions, state of the
connection as seen by conntrack, etc.

Signed-off-by: Milan Lenco <milan@zededa.com>
milan-zededa added a commit to milan-zededa/eve-libs that referenced this pull request Jul 7, 2025
Library github.com/ti-mo/conntrack was patched to properly handle
conntrack retrieval for IPv6 entries.

This is the PR with the fix:
ti-mo/conntrack#46

We use this library inside nettrace to capture information provided by
conntrack, such as the number of packets/bytes seen in both directions,
state of the connection as observed by conntrack, etc.

Signed-off-by: Milan Lenco <milan@zededa.com>
milan-zededa added a commit to milan-zededa/eve-libs that referenced this pull request Jul 7, 2025
Library github.com/ti-mo/conntrack was patched to properly handle
conntrack retrieval for IPv6 entries.

This is the PR with the fix:
ti-mo/conntrack#46

We use this library inside nettrace to capture information provided by
conntrack, such as the number of packets/bytes seen in both directions,
state of the connection as observed by conntrack, etc.

Signed-off-by: Milan Lenco <milan@zededa.com>
eriknordmark pushed a commit to lf-edge/eve-libs that referenced this pull request Jul 8, 2025
Library github.com/ti-mo/conntrack was patched to properly handle
conntrack retrieval for IPv6 entries.

This is the PR with the fix:
ti-mo/conntrack#46

We use this library inside nettrace to capture information provided by
conntrack, such as the number of packets/bytes seen in both directions,
state of the connection as observed by conntrack, etc.

Signed-off-by: Milan Lenco <milan@zededa.com>
milan-zededa added a commit to milan-zededa/eve that referenced this pull request Jul 9, 2025
Update eve-libs dependency, which now uses the latest github.com/ti-mo/conntrack
library that was patched to properly handle conntrack retrieval for IPv6 entries.

This is the PR with the fix:
ti-mo/conntrack#46

We use this library inside eve-libs/nettrace to capture information provided by
conntrack, such as the number of packets/bytes seen in both directions,
state of the connection as observed by conntrack, etc.

Signed-off-by: Milan Lenco <milan@zededa.com>
milan-zededa added a commit to milan-zededa/eve that referenced this pull request Jul 11, 2025
Update eve-libs dependency, which now uses the latest github.com/ti-mo/conntrack
library that was patched to properly handle conntrack retrieval for IPv6 entries.

This is the PR with the fix:
ti-mo/conntrack#46

We use this library inside eve-libs/nettrace to capture information provided by
conntrack, such as the number of packets/bytes seen in both directions,
state of the connection as observed by conntrack, etc.

Signed-off-by: Milan Lenco <milan@zededa.com>
milan-zededa added a commit to milan-zededa/eve that referenced this pull request Jul 14, 2025
Update eve-libs dependency, which now uses the latest github.com/ti-mo/conntrack
library that was patched to properly handle conntrack retrieval for IPv6 entries.

This is the PR with the fix:
ti-mo/conntrack#46

We use this library inside eve-libs/nettrace to capture information provided by
conntrack, such as the number of packets/bytes seen in both directions,
state of the connection as observed by conntrack, etc.

Signed-off-by: Milan Lenco <milan@zededa.com>
milan-zededa added a commit to milan-zededa/eve that referenced this pull request Jul 14, 2025
Update eve-libs dependency, which now uses the latest github.com/ti-mo/conntrack
library that was patched to properly handle conntrack retrieval for IPv6 entries.

This is the PR with the fix:
ti-mo/conntrack#46

We use this library inside eve-libs/nettrace to capture information provided by
conntrack, such as the number of packets/bytes seen in both directions,
state of the connection as observed by conntrack, etc.

Also included is the update of AWS SDK go library from v1 to v2:
lf-edge/eve-libs#39

Lastly, eve-libs was patched to support AWS datastore over IPv6 connectivity:
lf-edge/eve-libs#40

Signed-off-by: Milan Lenco <milan@zededa.com>
milan-zededa added a commit to milan-zededa/eve that referenced this pull request Jul 17, 2025
Update eve-libs dependency, which now uses the latest github.com/ti-mo/conntrack
library that was patched to properly handle conntrack retrieval for IPv6 entries.

This is the PR with the fix:
ti-mo/conntrack#46

We use this library inside eve-libs/nettrace to capture information provided by
conntrack, such as the number of packets/bytes seen in both directions,
state of the connection as observed by conntrack, etc.

Signed-off-by: Milan Lenco <milan@zededa.com>
milan-zededa added a commit to milan-zededa/eve that referenced this pull request Jul 21, 2025
Update eve-libs dependency, which now uses the latest github.com/ti-mo/conntrack
library that was patched to properly handle conntrack retrieval for IPv6 entries.

This is the PR with the fix:
ti-mo/conntrack#46

We use this library inside eve-libs/nettrace to capture information provided by
conntrack, such as the number of packets/bytes seen in both directions,
state of the connection as observed by conntrack, etc.

Signed-off-by: Milan Lenco <milan@zededa.com>
milan-zededa added a commit to milan-zededa/eve that referenced this pull request Jul 21, 2025
Update eve-libs dependency, which now uses the latest github.com/ti-mo/conntrack
library that was patched to properly handle conntrack retrieval for IPv6 entries.

This is the PR with the fix:
ti-mo/conntrack#46

We use this library inside eve-libs/nettrace to capture information provided by
conntrack, such as the number of packets/bytes seen in both directions,
state of the connection as observed by conntrack, etc.

Signed-off-by: Milan Lenco <milan@zededa.com>
eriknordmark pushed a commit to lf-edge/eve that referenced this pull request Jul 22, 2025
Update eve-libs dependency, which now uses the latest github.com/ti-mo/conntrack
library that was patched to properly handle conntrack retrieval for IPv6 entries.

This is the PR with the fix:
ti-mo/conntrack#46

We use this library inside eve-libs/nettrace to capture information provided by
conntrack, such as the number of packets/bytes seen in both directions,
state of the connection as observed by conntrack, etc.

Signed-off-by: Milan Lenco <milan@zededa.com>
sultatos pushed a commit to sultatos/eve that referenced this pull request Jul 29, 2025
Update eve-libs dependency, which now uses the latest github.com/ti-mo/conntrack
library that was patched to properly handle conntrack retrieval for IPv6 entries.

This is the PR with the fix:
ti-mo/conntrack#46

We use this library inside eve-libs/nettrace to capture information provided by
conntrack, such as the number of packets/bytes seen in both directions,
state of the connection as observed by conntrack, etc.

Signed-off-by: Milan Lenco <milan@zededa.com>
milan-zededa added a commit to milan-zededa/eve that referenced this pull request Jul 30, 2025
Update eve-libs dependency, which now uses the latest github.com/ti-mo/conntrack
library that was patched to properly handle conntrack retrieval for IPv6 entries.

This is the PR with the fix:
ti-mo/conntrack#46

We use this library inside eve-libs/nettrace to capture information provided by
conntrack, such as the number of packets/bytes seen in both directions,
state of the connection as observed by conntrack, etc.

Signed-off-by: Milan Lenco <milan@zededa.com>
(cherry picked from commit cbc7b61)
milan-zededa added a commit to milan-zededa/eve that referenced this pull request Jul 30, 2025
Update eve-libs dependency, which now uses the latest github.com/ti-mo/conntrack
library that was patched to properly handle conntrack retrieval for IPv6 entries.

This is the PR with the fix:
ti-mo/conntrack#46

We use this library inside eve-libs/nettrace to capture information provided by
conntrack, such as the number of packets/bytes seen in both directions,
state of the connection as observed by conntrack, etc.

Signed-off-by: Milan Lenco <milan@zededa.com>
(cherry picked from commit cbc7b61)
OhmSpectator pushed a commit to lf-edge/eve that referenced this pull request Jul 30, 2025
Update eve-libs dependency, which now uses the latest github.com/ti-mo/conntrack
library that was patched to properly handle conntrack retrieval for IPv6 entries.

This is the PR with the fix:
ti-mo/conntrack#46

We use this library inside eve-libs/nettrace to capture information provided by
conntrack, such as the number of packets/bytes seen in both directions,
state of the connection as observed by conntrack, etc.

Signed-off-by: Milan Lenco <milan@zededa.com>
(cherry picked from commit cbc7b61)
eriknordmark pushed a commit to lf-edge/eve-libs that referenced this pull request Feb 10, 2026
Library github.com/ti-mo/conntrack was patched to properly handle
conntrack retrieval for IPv6 entries.

This is the PR with the fix:
ti-mo/conntrack#46

We use this library inside nettrace to capture information provided by
conntrack, such as the number of packets/bytes seen in both directions,
state of the connection as observed by conntrack, etc.

Signed-off-by: Milan Lenco <milan@zededa.com>
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.

3 participants