blob: c82e76e3567c7d8328cb384c9816efe0c3a4f30c [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 Ferris525ce912017-07-26 13:12:53 -070025 __PSAMPLE_ATTR_MAX
Christopher Ferris82d75042015-01-26 10:57:07 -080026};
Christopher Ferris525ce912017-07-26 13:12:53 -070027enum psample_command {
28 PSAMPLE_CMD_SAMPLE,
29 PSAMPLE_CMD_GET_GROUP,
30 PSAMPLE_CMD_NEW_GROUP,
31 PSAMPLE_CMD_DEL_GROUP,
32};
Christopher Ferris8177cdf2020-08-03 11:53:55 -070033enum psample_tunnel_key_attr {
34 PSAMPLE_TUNNEL_KEY_ATTR_ID,
35 PSAMPLE_TUNNEL_KEY_ATTR_IPV4_SRC,
36 PSAMPLE_TUNNEL_KEY_ATTR_IPV4_DST,
37 PSAMPLE_TUNNEL_KEY_ATTR_TOS,
38 PSAMPLE_TUNNEL_KEY_ATTR_TTL,
39 PSAMPLE_TUNNEL_KEY_ATTR_DONT_FRAGMENT,
40 PSAMPLE_TUNNEL_KEY_ATTR_CSUM,
41 PSAMPLE_TUNNEL_KEY_ATTR_OAM,
42 PSAMPLE_TUNNEL_KEY_ATTR_GENEVE_OPTS,
43 PSAMPLE_TUNNEL_KEY_ATTR_TP_SRC,
44 PSAMPLE_TUNNEL_KEY_ATTR_TP_DST,
45 PSAMPLE_TUNNEL_KEY_ATTR_VXLAN_OPTS,
46 PSAMPLE_TUNNEL_KEY_ATTR_IPV6_SRC,
47 PSAMPLE_TUNNEL_KEY_ATTR_IPV6_DST,
48 PSAMPLE_TUNNEL_KEY_ATTR_PAD,
49 PSAMPLE_TUNNEL_KEY_ATTR_ERSPAN_OPTS,
50 PSAMPLE_TUNNEL_KEY_ATTR_IPV4_INFO_BRIDGE,
51 __PSAMPLE_TUNNEL_KEY_ATTR_MAX
52};
Christopher Ferris525ce912017-07-26 13:12:53 -070053#define PSAMPLE_ATTR_MAX (__PSAMPLE_ATTR_MAX - 1)
54#define PSAMPLE_NL_MCGRP_CONFIG_NAME "config"
55#define PSAMPLE_NL_MCGRP_SAMPLE_NAME "packets"
56#define PSAMPLE_GENL_NAME "psample"
57#define PSAMPLE_GENL_VERSION 1
Christopher Ferris82d75042015-01-26 10:57:07 -080058#endif