[go: nahoru, domu]

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

WIP - Listening IPv6 sockets may be both IPv4 and IPv6 #17866

Draft
wants to merge 35 commits into
base: master
Choose a base branch
from

Conversation

ktsaou
Copy link
Member
@ktsaou ktsaou commented Jun 12, 2024

listening ipv6 sockets may be both ipv4 and ipv6, depending on the IPV6_ONLY flag

Tests:

  • works for ipv46 host sockets
  • works for ipv46 container sockets

@github-actions github-actions bot added area/collectors Everything related to data collection collectors/plugins.d labels Jun 12, 2024
@ktsaou
Copy link
Member Author
ktsaou commented Jun 12, 2024

@ilyam8 I cannot run the tests. Please help verify this works.

For local-listeners, the report will be TCP46 and UDP46.
For network-viewer, the protocol will be tcp46 and udp46.

@ktsaou
Copy link
Member Author
ktsaou commented Jun 12, 2024

It did not work. It seems like we cannot open a socket by opening the fd from /proc.

However, it works via netlink. So, I enabled libmnl by default. It is slower, but now we can have latency information (round trip time) and also total number of retransmits on the sockets.

Since this is now using netlink, I think we need to test it works properly for containers too.

@ktsaou ktsaou requested a review from a team as a code owner June 14, 2024 10:49
@github-actions github-actions bot added the area/build Build system (autotools and cmake). label Jun 14, 2024
@ktsaou
Copy link
Member Author
ktsaou commented Jun 16, 2024

Do not merge! The multi-threaded fork() is a bad idea. malloc locks are forked locked and the forked processes end up in deadlock.

We need a spawn server for this work correctly!

@ktsaou ktsaou changed the title Listening IPv6 sockets may be both IPv4 and IPv6 WIP - Listening IPv6 sockets may be both IPv4 and IPv6 Jun 16, 2024
@ilyam8 ilyam8 marked this pull request as draft June 17, 2024 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/build Build system (autotools and cmake). area/collectors Everything related to data collection area/daemon collectors/plugins.d
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant