summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/netlink/route/tc.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/netlink/route/tc.h b/include/netlink/route/tc.h
index 17021be..6cf8cb8 100644
--- a/include/netlink/route/tc.h
+++ b/include/netlink/route/tc.h
@@ -24,6 +24,12 @@ extern "C" {
#endif
/**
+ * Compute tc handle based on major and minor parts
+ * @ingroup tc
+ */
+#define TC_HANDLE(maj, min) (TC_H_MAJ((maj) << 16) | TC_H_MIN(min))
+
+/**
* Traffic control object
* @ingroup tc
*/