diff options
Diffstat (limited to 'include/utils.h')
-rw-r--r-- | include/utils.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/utils.h b/include/utils.h index a4133c91..1769ca10 100644 --- a/include/utils.h +++ b/include/utils.h @@ -127,6 +127,12 @@ static __inline__ int get_user_hz(void) return __iproute2_user_hz_internal; } +static inline __u32 nl_mgrp(__u32 group) +{ + return group ? (1 << (group -1)) : 0; +} + + int print_timestamp(FILE *fp); #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) |