1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2 #ifndef __UAPI_PSAMPLE_H
3 #define __UAPI_PSAMPLE_H
4 
5 enum {
6 	/* sampled packet metadata */
7 	PSAMPLE_ATTR_IIFINDEX,
8 	PSAMPLE_ATTR_OIFINDEX,
9 	PSAMPLE_ATTR_ORIGSIZE,
10 	PSAMPLE_ATTR_SAMPLE_GROUP,
11 	PSAMPLE_ATTR_GROUP_SEQ,
12 	PSAMPLE_ATTR_SAMPLE_RATE,
13 	PSAMPLE_ATTR_DATA,
14 
15 	/* commands attributes */
16 	PSAMPLE_ATTR_GROUP_REFCOUNT,
17 
18 	__PSAMPLE_ATTR_MAX
19 };
20 
21 enum psample_command {
22 	PSAMPLE_CMD_SAMPLE,
23 	PSAMPLE_CMD_GET_GROUP,
24 	PSAMPLE_CMD_NEW_GROUP,
25 	PSAMPLE_CMD_DEL_GROUP,
26 };
27 
28 /* Can be overridden at runtime by module option */
29 #define PSAMPLE_ATTR_MAX (__PSAMPLE_ATTR_MAX - 1)
30 
31 #define PSAMPLE_NL_MCGRP_CONFIG_NAME "config"
32 #define PSAMPLE_NL_MCGRP_SAMPLE_NAME "packets"
33 #define PSAMPLE_GENL_NAME "psample"
34 #define PSAMPLE_GENL_VERSION 1
35 
36 #endif
37