RecvQ Size from fd?

Ryan Sommers ryans at rpsommers.com
Wed Nov 18 20:03:17 UTC 2009


Is it possible to get the amount of data in the receive queue from a
socket file descriptor (userland app)? I see that netstat gets a list
of struct socket* and from there you can find the answer from the
so_rcv sockbuf. But I can't find a way to match a socket fd up to the
struct sock.

Thanks,
Ryan

-- 
Ryan P Sommers
ryans at rpsommers.com


More information about the freebsd-questions mailing list