]>
git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blob - include/uapi/linux/packet_diag.h
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
19 #define PACKET_SHOW_MEMINFO 0x00000010
20 #define PACKET_SHOW_FILTER 0x00000020
22 struct packet_diag_msg
{
28 __u32 pdiag_cookie
[2];
32 /* PACKET_DIAG_NONE, standard nl API requires this attribute! */
45 #define PACKET_DIAG_MAX (__PACKET_DIAG_MAX - 1)
47 struct packet_diag_info
{
51 __u32 pdi_copy_thresh
;
55 #define PDI_RUNNING 0x1
56 #define PDI_AUXDATA 0x2
57 #define PDI_ORIGDEV 0x4
58 #define PDI_VNETHDR 0x8
62 struct packet_diag_mclist
{
67 __u8 pdmc_addr
[MAX_ADDR_LEN
];
70 struct packet_diag_ring
{
76 __u32 pdr_sizeof_priv
;