summaryrefslogtreecommitdiffstats
path: root/include/linux/packet_diag.h
diff options
context:
space:
mode:
authorPavel Emelyanov2012-08-16 07:36:48 +0200
committerDavid S. Miller2012-08-20 11:23:14 +0200
commitfff3321d75b1a18231876a1aceb36eacbbf6221e (patch)
treeff7d423fae980191ed922038ce5e1d0a05e19fab /include/linux/packet_diag.h
parentpacket: Report rings cfg via diag engine (diff)
downloadkernel-qcow2-linux-fff3321d75b1a18231876a1aceb36eacbbf6221e.tar.gz
kernel-qcow2-linux-fff3321d75b1a18231876a1aceb36eacbbf6221e.tar.xz
kernel-qcow2-linux-fff3321d75b1a18231876a1aceb36eacbbf6221e.zip
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>
Diffstat (limited to 'include/linux/packet_diag.h')
-rw-r--r--include/linux/packet_diag.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/packet_diag.h b/include/linux/packet_diag.h
index 34ade828979b..93f5fa94a431 100644
--- a/include/linux/packet_diag.h
+++ b/include/linux/packet_diag.h
@@ -15,6 +15,7 @@ struct packet_diag_req {
#define PACKET_SHOW_INFO 0x00000001 /* Basic packet_sk information */
#define PACKET_SHOW_MCLIST 0x00000002 /* A set of packet_diag_mclist-s */
#define PACKET_SHOW_RING_CFG 0x00000004 /* Rings configuration parameters */
+#define PACKET_SHOW_FANOUT 0x00000008
struct packet_diag_msg {
__u8 pdiag_family;
@@ -30,6 +31,7 @@ enum {
PACKET_DIAG_MCLIST,
PACKET_DIAG_RX_RING,
PACKET_DIAG_TX_RING,
+ PACKET_DIAG_FANOUT,
PACKET_DIAG_MAX,
};