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 @@ -23,6 +23,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