]> git.baikalelectronics.ru Git - kernel.git/commit
unix_diag: Fixup RQLEN extension report
authorPavel Emelyanov <xemul@parallels.com>
Fri, 30 Dec 2011 00:54:39 +0000 (00:54 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Dec 2011 21:46:02 +0000 (16:46 -0500)
commit5caed4daaf24882dd06fd0859a691be9a74e01f9
treed78e4097afdcba4a3a4dd2303cc8bd475331b75a
parentab3cd0794f3a20de363db3db5246e46c6fa4b165
unix_diag: Fixup RQLEN extension report

While it's not too late fix the recently added RQLEN diag extension
to report rqlen and wqlen in the same way as TCP does.

I.e. for listening sockets the ack backlog length (which is the input
queue length for socket) in rqlen and the max ack backlog length in
wqlen, and what the CINQ/OUTQ ioctls do for established.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/unix_diag.h
net/unix/diag.c