Multicast computation off by one
Subsystems (2)
PATCH 1/1 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
---
commit b883bf2396abc0434b3a63d228593cec80808dbb
tree dba2b9664d88d7a4641d11c6284b984a33d2b47a
parent 288384f22ffafd2d7d888ee45d8dfcf26d3f2b1c
author Jamal Hadi Salim <[email protected]> Tue, 05 Dec 2006 14:13:46 -0500 committer Jamal Hadi Salim <[email protected]> Tue, 05 Dec 2006 14:13:46 -0500
genl/genl_utils.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
genl/genl_utils.h +1 -1
@@ -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