[erlang-questions] socket getsockopt PACKET_STATISTICS

Max Lapshin max.lapshin@REDACTED
Thu Oct 6 09:28:05 CEST 2016


Seems that I hurried with my email and it was wrong.


1) it seems to be impossible to query packet drops statistics from UDP
socket. I need to look in /proc for inode number and parse /proc/net/udp to
find row with proper inode

2) yes, it is possible theoretically to query a {raw,X,Y,Z} sockopt and it
could help if not (1) and it seems to be a more portable way according to
your policy.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20161006/35c1b888/attachment.htm>


More information about the erlang-questions mailing list