blob: f9f979c0085c60a6fbba10e360bcb4435130b7d6 [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
2 * This file is auto-generated. Modifications will be lost.
3 *
4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5 * for more information.
6 */
Christopher Ferris525ce912017-07-26 13:12:53 -07007#ifndef __UAPI_PSAMPLE_H
8#define __UAPI_PSAMPLE_H
9enum {
10 PSAMPLE_ATTR_IIFINDEX,
11 PSAMPLE_ATTR_OIFINDEX,
12 PSAMPLE_ATTR_ORIGSIZE,
13 PSAMPLE_ATTR_SAMPLE_GROUP,
14 PSAMPLE_ATTR_GROUP_SEQ,
15 PSAMPLE_ATTR_SAMPLE_RATE,
16 PSAMPLE_ATTR_DATA,
17 PSAMPLE_ATTR_GROUP_REFCOUNT,
Christopher Ferrisa9750ed2021-05-03 14:02:49 -070018 PSAMPLE_ATTR_TUNNEL,
Christopher Ferrisfcc3b4f2021-07-01 01:30:21 +000019 PSAMPLE_ATTR_PAD,
20 PSAMPLE_ATTR_OUT_TC,
21 PSAMPLE_ATTR_OUT_TC_OCC,
22 PSAMPLE_ATTR_LATENCY,
23 PSAMPLE_ATTR_TIMESTAMP,
24 PSAMPLE_ATTR_PROTO,
Christopher Ferris63fcca42024-09-26 01:12:10 +000025 PSAMPLE_ATTR_USER_COOKIE,
26 PSAMPLE_ATTR_SAMPLE_PROBABILITY,
Christopher Ferris525ce912017-07-26 13:12:53 -070027 __PSAMPLE_ATTR_MAX
Christopher Ferris82d75042015-01-26 10:57:07 -080028};
Christopher Ferris525ce912017-07-26 13:12:53 -070029enum psample_command {
30 PSAMPLE_CMD_SAMPLE,
31 PSAMPLE_CMD_GET_GROUP,
32 PSAMPLE_CMD_NEW_GROUP,
33 PSAMPLE_CMD_DEL_GROUP,
34};
Christopher Ferris8177cdf2020-08-03 11:53:55 -070035enum psample_tunnel_key_attr {
36 PSAMPLE_TUNNEL_KEY_ATTR_ID,
37 PSAMPLE_TUNNEL_KEY_ATTR_IPV4_SRC,
38 PSAMPLE_TUNNEL_KEY_ATTR_IPV4_DST,
39 PSAMPLE_TUNNEL_KEY_ATTR_TOS,
40 PSAMPLE_TUNNEL_KEY_ATTR_TTL,
41 PSAMPLE_TUNNEL_KEY_ATTR_DONT_FRAGMENT,
42 PSAMPLE_TUNNEL_KEY_ATTR_CSUM,
43 PSAMPLE_TUNNEL_KEY_ATTR_OAM,
44 PSAMPLE_TUNNEL_KEY_ATTR_GENEVE_OPTS,
45 PSAMPLE_TUNNEL_KEY_ATTR_TP_SRC,
46 PSAMPLE_TUNNEL_KEY_ATTR_TP_DST,
47 PSAMPLE_TUNNEL_KEY_ATTR_VXLAN_OPTS,
48 PSAMPLE_TUNNEL_KEY_ATTR_IPV6_SRC,
49 PSAMPLE_TUNNEL_KEY_ATTR_IPV6_DST,
50 PSAMPLE_TUNNEL_KEY_ATTR_PAD,
51 PSAMPLE_TUNNEL_KEY_ATTR_ERSPAN_OPTS,
52 PSAMPLE_TUNNEL_KEY_ATTR_IPV4_INFO_BRIDGE,
53 __PSAMPLE_TUNNEL_KEY_ATTR_MAX
54};
Christopher Ferris525ce912017-07-26 13:12:53 -070055#define PSAMPLE_ATTR_MAX (__PSAMPLE_ATTR_MAX - 1)
56#define PSAMPLE_NL_MCGRP_CONFIG_NAME "config"
57#define PSAMPLE_NL_MCGRP_SAMPLE_NAME "packets"
58#define PSAMPLE_GENL_NAME "psample"
59#define PSAMPLE_GENL_VERSION 1
Christopher Ferris82d75042015-01-26 10:57:07 -080060#endif