eminence / procfs

Rust library for reading the Linux procfs filesystem
Other
367 stars 106 forks source link

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

Open dergecko opened 1 month ago

dergecko commented 1 month ago

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: https://github.com/torvalds/linux/commit/cb61cb9b8b5ef6c2697d84e5015e314626eb2fba

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

eminence commented 1 month ago

Thanks! Can you check the CI build failures?