title: Current udp packets queue length
body: <p>I have rather simple UDP server written on c.
  Sometimes i need to know current length of all udp packets(bytes) queued in socket.
  As i understand, getsockopt doesn't get such information.</p>
  
  <p>Linux and FreeBSD solutions are both welcome, thanks!</p>