8000 support UDP drops · Issue #506 · prometheus/procfs · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

support UDP drops #506

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

Closed
funkiestj opened this issue Apr 15, 2023 · 2 comments · Fixed by #538
Closed

support UDP drops #506

funkiestj opened this issue Apr 15, 2023 · 2 comments · Fixed by #538

Comments

@funkiestj
Copy link

on newer linux systems /proc/net/udp (and /proc/net/udp6) have a drop column on the far right:


$ uname -a
Linux ip-172-31-10-56 5.4.0-1045-aws #47~18.04.1-Ubuntu SMP Tue Apr 13 15:58:14 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux 

$ cat /proc/net/udp
  sl  local_address rem_address   st tx_queue rx_queue tr tm->when retrnsmt   uid  timeout inode ref pointer drops
 4000: 3500007F:0035 00000000:0000 07 00000000:00000000 00:00000000 00000000   101        0 256693 2 0000000000000000 0
 4015: 380A1FAC:0044 00000000:0000 07 00000000:00000000 00:00000000 00000000   100        0 1016179 2 0000000000000000 0
 5890: 0100007F:8797 0100007F:C351 01 00000000:00000000 00:00000000 00000000  1001        0 1016395 2 0000000000000000 0
 8736: 00000000:12B5 00000000:0000 07 00000000:00000000 00:00000000 00000000     0        0 32052 2 0000000000000000 0
12419: 00000000:2118 00000000:0000 07 00000000:00000000 00:00000000 00000000     0        0 24157 2 0000000000000000 0
@alebsys
Copy link
Contributor
alebsys commented Jun 8, 2023

@discordianfish, can you please assign this to me? tnx

@alebsys
Copy link
Contributor
alebsys commented Jun 9, 2023

The TCP and UDP interfaces are very different after the inode column in /proc/net/udp | /proc/net/tcp files.
Maybe it's worth creating separate structures for UDP and TCP instead of a single netIPSocketLine? Otherwise, it breaks the logic in the tests at the stage of DeepEqual comparison.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants
0