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