[utils] make muticast group to bitmask conversion generic
Signed-off-by: J Hadi Salim <hadi@cyberus.ca>
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
#ifndef _TC_UTIL_H_
#define _TC_UTIL_H_ 1
+#include "utils.h"
#include "linux/genetlink.h"
struct genl_util
extern int genl_ctrl_resolve_family(const char *family);
-/* seems to have dissapeared from netlink.h */
-static inline __u32 nl_mgrp(__u32 group)
-{
- return group ? (1 << (group -1)) : 0;
-}
-
#endif
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]))