aboutsummaryrefslogtreecommitdiff
path: root/libc/include/generic-musl/linux/psample.h
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-03-12 10:28:05 -0400
committerAndrew Kelley <andrew@ziglang.org>2019-03-12 10:30:12 -0400
commitb7c331eb610bae76dab7f65044012282344acbd5 (patch)
treed6f58f0219f01c5a9965c2bfec3b553537b95c2a /libc/include/generic-musl/linux/psample.h
parent761356209bd64ed655be96c0cf11869f2ff5f530 (diff)
downloadzig-b7c331eb610bae76dab7f65044012282344acbd5.tar.gz
zig-b7c331eb610bae76dab7f65044012282344acbd5.zip
add musl headers
Diffstat (limited to 'libc/include/generic-musl/linux/psample.h')
-rw-r--r--libc/include/generic-musl/linux/psample.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/libc/include/generic-musl/linux/psample.h b/libc/include/generic-musl/linux/psample.h
new file mode 100644
index 0000000000..3fc357a7f9
--- /dev/null
+++ b/libc/include/generic-musl/linux/psample.h
@@ -0,0 +1,36 @@
+/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
+#ifndef __UAPI_PSAMPLE_H
+#define __UAPI_PSAMPLE_H
+
+enum {
+ /* sampled packet metadata */
+ PSAMPLE_ATTR_IIFINDEX,
+ PSAMPLE_ATTR_OIFINDEX,
+ PSAMPLE_ATTR_ORIGSIZE,
+ PSAMPLE_ATTR_SAMPLE_GROUP,
+ PSAMPLE_ATTR_GROUP_SEQ,
+ PSAMPLE_ATTR_SAMPLE_RATE,
+ PSAMPLE_ATTR_DATA,
+
+ /* commands attributes */
+ PSAMPLE_ATTR_GROUP_REFCOUNT,
+
+ __PSAMPLE_ATTR_MAX
+};
+
+enum psample_command {
+ PSAMPLE_CMD_SAMPLE,
+ PSAMPLE_CMD_GET_GROUP,
+ PSAMPLE_CMD_NEW_GROUP,
+ PSAMPLE_CMD_DEL_GROUP,
+};
+
+/* Can be overridden at runtime by module option */
+#define PSAMPLE_ATTR_MAX (__PSAMPLE_ATTR_MAX - 1)
+
+#define PSAMPLE_NL_MCGRP_CONFIG_NAME "config"
+#define PSAMPLE_NL_MCGRP_SAMPLE_NAME "packets"
+#define PSAMPLE_GENL_NAME "psample"
+#define PSAMPLE_GENL_VERSION 1
+
+#endif \ No newline at end of file