naccyde / rpms / iproute

Forked from rpms/iproute 9 months ago
Clone

Blame SOURCES/0033-Import-tc_act-tc_ct.h-uapi-file.patch

d2d45d
From 4c330f41bce887a4a06d6c84c62a3a8c1b0b5160 Mon Sep 17 00:00:00 2001
d2d45d
From: Andrea Claudi <aclaudi@redhat.com>
d2d45d
Date: Tue, 9 Jun 2020 15:45:55 +0200
d2d45d
Subject: [PATCH] Import tc_act/tc_ct.h uapi file
d2d45d
d2d45d
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1844637
d2d45d
Upstream Status: iproute2.git commit f47081befffc5
d2d45d
d2d45d
commit f47081befffc50a5eef734d0a6654b59047e7808
d2d45d
Author: David Ahern <dsahern@gmail.com>
d2d45d
Date:   Thu Jul 18 15:40:07 2019 -0700
d2d45d
d2d45d
    Import tc_act/tc_ct.h uapi file
d2d45d
d2d45d
    Import include/uapi/linux/tc_act/tc_ct.h header from commit of last
d2d45d
    kernel headers sync.
d2d45d
d2d45d
    Signed-off-by: David Ahern <dsahern@gmail.com>
d2d45d
---
d2d45d
 include/uapi/linux/tc_act/tc_ct.h | 41 +++++++++++++++++++++++++++++++
d2d45d
 1 file changed, 41 insertions(+)
d2d45d
 create mode 100644 include/uapi/linux/tc_act/tc_ct.h
d2d45d
d2d45d
diff --git a/include/uapi/linux/tc_act/tc_ct.h b/include/uapi/linux/tc_act/tc_ct.h
d2d45d
new file mode 100644
d2d45d
index 0000000000000..5fb1d7ac10272
d2d45d
--- /dev/null
d2d45d
+++ b/include/uapi/linux/tc_act/tc_ct.h
d2d45d
@@ -0,0 +1,41 @@
d2d45d
+/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
d2d45d
+#ifndef __UAPI_TC_CT_H
d2d45d
+#define __UAPI_TC_CT_H
d2d45d
+
d2d45d
+#include <linux/types.h>
d2d45d
+#include <linux/pkt_cls.h>
d2d45d
+
d2d45d
+enum {
d2d45d
+	TCA_CT_UNSPEC,
d2d45d
+	TCA_CT_PARMS,
d2d45d
+	TCA_CT_TM,
d2d45d
+	TCA_CT_ACTION,		/* u16 */
d2d45d
+	TCA_CT_ZONE,		/* u16 */
d2d45d
+	TCA_CT_MARK,		/* u32 */
d2d45d
+	TCA_CT_MARK_MASK,	/* u32 */
d2d45d
+	TCA_CT_LABELS,		/* u128 */
d2d45d
+	TCA_CT_LABELS_MASK,	/* u128 */
d2d45d
+	TCA_CT_NAT_IPV4_MIN,	/* be32 */
d2d45d
+	TCA_CT_NAT_IPV4_MAX,	/* be32 */
d2d45d
+	TCA_CT_NAT_IPV6_MIN,	/* struct in6_addr */
d2d45d
+	TCA_CT_NAT_IPV6_MAX,	/* struct in6_addr */
d2d45d
+	TCA_CT_NAT_PORT_MIN,	/* be16 */
d2d45d
+	TCA_CT_NAT_PORT_MAX,	/* be16 */
d2d45d
+	TCA_CT_PAD,
d2d45d
+	__TCA_CT_MAX
d2d45d
+};
d2d45d
+
d2d45d
+#define TCA_CT_MAX (__TCA_CT_MAX - 1)
d2d45d
+
d2d45d
+#define TCA_CT_ACT_COMMIT	(1 << 0)
d2d45d
+#define TCA_CT_ACT_FORCE	(1 << 1)
d2d45d
+#define TCA_CT_ACT_CLEAR	(1 << 2)
d2d45d
+#define TCA_CT_ACT_NAT		(1 << 3)
d2d45d
+#define TCA_CT_ACT_NAT_SRC	(1 << 4)
d2d45d
+#define TCA_CT_ACT_NAT_DST	(1 << 5)
d2d45d
+
d2d45d
+struct tc_ct {
d2d45d
+	tc_gen;
d2d45d
+};
d2d45d
+
d2d45d
+#endif /* __UAPI_TC_CT_H */
d2d45d
-- 
d2d45d
2.26.2
d2d45d