summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjamal <hadi@cyberus.ca>2006-12-06 12:06:03 -0500
committerStephen Hemminger <shemminger@osdl.org>2006-12-06 11:31:13 -0800
commit83ef226b422d06e114cdc54a3b9bf779c3e85679 (patch)
treea06cbb4dc49bfb01f498decb39633d0ae3aef827
parentae665a522bd46bea44c5ea84c89c8b1731954170 (diff)
Multicast computation off by one
A small typo fixup BTW, how do you like the subject to look like? cheers, jamal [GENL] Multicast computation off by one When using the first 32 groups, the multicast group to bit mapping was off by one. Signed-off-by: Jamal Hadi Salim Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
-rw-r--r--genl/genl_utils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/genl/genl_utils.h b/genl/genl_utils.h
index 2f2314b1..22e9210f 100644
--- a/genl/genl_utils.h
+++ b/genl/genl_utils.h
@@ -16,7 +16,7 @@ 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 : 0;
+ return group ? (1 << (group -1)) : 0;
}
#endif