Commit 83ef226b authored by jamal's avatar jamal Committed by Stephen Hemminger

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: default avatarStephen Hemminger <shemminger@osdl.org>
parent ae665a52
......@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment