]> git.baikalelectronics.ru Git - kernel.git/commit
packet: Report fanout status via diag engine
authorPavel Emelyanov <xemul@parallels.com>
Thu, 16 Aug 2012 05:36:48 +0000 (05:36 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Aug 2012 09:23:14 +0000 (02:23 -0700)
commit6b0370df7b30fe9a62a71df4910fe58c9fb1a2d5
treeff7d423fae980191ed922038ce5e1d0a05e19fab
parent48ea57fdb298970351ad138df5c7193199a25d33
packet: Report fanout status via diag engine

Reported value is the same reported by the FANOUT getsockoption, but
unlike it, the absent fanout setup results in absent nlattr, rather
than in nlattr with zero value. This is done so, since zero fanout
report may mean both -- no fanout, and fanout with both id and type zero.

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