Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Improper types can get assigned #1679

Open
nf-brentsaner opened this issue Jul 23, 2024 · 0 comments
Open

Improper types can get assigned #1679

nf-brentsaner opened this issue Jul 23, 2024 · 0 comments

Comments

@nf-brentsaner
Copy link

nf-brentsaner commented Jul 23, 2024

Describe the bug
The ConnectionState.Type is decided by which family it is, e.g.:
https://github.com/shirou/gopsutil/blob/master/net/net_linux.go#L456

This is incorrect, as there can be e.g. syscall.SOCK_STREAM types of syscall.AF_UNIX connections.

To Reproduce
N/A

Expected behavior
This should be determined as reported by the kernel and not a map.

Environment (please complete the following information):
(See above example; Linux)

Additional context
N/A

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant