1 #ifndef __PACKET_DIAG_H__
2 #define __PACKET_DIAG_H__
4 #include <linux/types.h>
6 struct packet_diag_req {
12 __u32 pdiag_cookie[2];
15 #define PACKET_SHOW_INFO 0x00000001 /* Basic packet_sk information */
16 #define PACKET_SHOW_MCLIST 0x00000002 /* A set of packet_diag_mclist-s */
17 #define PACKET_SHOW_RING_CFG 0x00000004 /* Rings configuration parameters */
18 #define PACKET_SHOW_FANOUT 0x00000008
20 struct packet_diag_msg {
26 __u32 pdiag_cookie[2];
39 struct packet_diag_info {
43 __u32 pdi_copy_thresh;
47 #define PDI_RUNNING 0x1
48 #define PDI_AUXDATA 0x2
49 #define PDI_ORIGDEV 0x4
50 #define PDI_VNETHDR 0x8
54 struct packet_diag_mclist {
59 __u8 pdmc_addr[MAX_ADDR_LEN];
62 struct packet_diag_ring {
68 __u32 pdr_sizeof_priv;