Package: libnl3 / 3.4.0-1

debian/tca_set_kind.diff Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From 35bfe26c7949560f4813238125cbdd4a5e56a124 Mon Sep 17 00:00:00 2001
From: Heiko Stuebner <heiko@sntech.de>
Date: Fri, 3 Nov 2017 10:04:42 +0100
Subject: [PATCH] Revert "route/tc: Remove unused function tca_set_kind()"

This reverts commit e2d8f05bd9ffc6748d1c02482cba8c693a49557c.
---
 lib/route/tc.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/lib/route/tc.c b/lib/route/tc.c
index 5dc43e1..c779c9c 100644
--- a/lib/route/tc.c
+++ b/lib/route/tc.c
@@ -239,6 +239,12 @@ nla_put_failure:
 	return err;
 }
 
+void tca_set_kind(struct rtnl_tc *t, const char *kind)
+{
+	strncpy(t->tc_kind, kind, sizeof(t->tc_kind) - 1);
+	t->ce_mask |= TCA_ATTR_KIND;
+}
+
 
 /** @endcond */
 
-- 
2.14.2