dect
/
libnl
Archived
13
0
Fork 0

Provide TC_HANDLE(maj, min) macro to generate tc handles

This commit is contained in:
Thomas Graf 2011-04-01 16:25:57 +02:00
parent 350b15f9d1
commit 475dffa699
1 changed files with 6 additions and 0 deletions

View File

@ -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