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

Support drops column in /proc/net/udp #316

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

dergecko
Copy link

Description

Since Kernel 2.6.27 the kernel reports drops on udp sockets.
I created this merge request to include the named column as I can become in handy.

The official man page does not list the udp drops column however the feature was introduces a long time ago.
Kernel commit: torvalds/linux@cb61cb9

Please let me know if I should change anything on the PR or if I missed something important, as this is my first PR here.

How was this PR tested?

I added unit tests for parsing the /proc/net/udp prior and after kernel version 2.6.27

@dergecko dergecko force-pushed the feat/include_drops_in_proc_net_udp branch 3 times, most recently from 9f98ff6 to d436d4a Compare August 28, 2024 11:14
@eminence
Copy link
Owner

Thanks! Can you check the CI build failures?

Michael Schleicher added 2 commits October 25, 2024 08:24
… can be read

Kernels prior to 2.6.27 do not provide a drops column for /proc/net/udp therefore a check is introduced to validate the current kernel version before reading the column

Add kernel version to SystemInfoInterface
@dergecko dergecko force-pushed the feat/include_drops_in_proc_net_udp branch from d436d4a to fcdc85e Compare October 25, 2024 06:25
@dergecko
Copy link
Author

I'm working on it

@dergecko dergecko closed this Oct 28, 2024
@dergecko dergecko reopened this Oct 28, 2024
@dergecko
Copy link
Author

Sorry, too less coffee this morning. I will ping you when it's ready for review!

Michael Schleicher and others added 3 commits October 28, 2024 04:14
In rust 1.80 compile-time checks for unkown features are introduced. Therefore workspace lints for unkown features are enabled.
@dergecko dergecko force-pushed the feat/include_drops_in_proc_net_udp branch from 5f4510a to d256c6d Compare October 28, 2024 08:14
@dergecko
Copy link
Author

Ok I fixed the CI build failures, but had to add some functionality to do so.
Feel free to have another look at it!

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