netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: jamal <hadi@cyberus.ca>
To: Stephen Hemminger <shemminger@osdl.org>
Cc: netdev@vger.kernel.org
Subject: [IPROUTE2 PATCH][utils] make muticast group to bitmask conversion generic
Date: Thu, 07 Dec 2006 20:47:03 -0500	[thread overview]
Message-ID: <1165542423.3666.15.camel@localhost> (raw)

[-- Attachment #1: Type: text/plain, Size: 1 bytes --]



[-- Attachment #2: ipr-util-m --]
[-- Type: text/plain, Size: 1430 bytes --]

[utils] make muticast group to bitmask conversion generic

Signed-off-by: J Hadi Salim <hadi@cyberus.ca>

---
commit 1326d6a1eb107e3b9ea7a3254e621dd3f827bb4d
tree 47387be512f44a27ee73678d3775801dfafaf03d
parent 06f5ab6e44fd60430c1b25cd6144d93d3c598bb0
author Jamal Hadi Salim <hadi@cyberus.ca> Thu, 07 Dec 2006 20:44:29 -0500
committer Jamal Hadi Salim <hadi@cyberus.ca> Thu, 07 Dec 2006 20:44:29 -0500

 genl/genl_utils.h |    7 +------
 include/utils.h   |    6 ++++++
 2 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/genl/genl_utils.h b/genl/genl_utils.h
index 22e9210..85b5183 100644
--- a/genl/genl_utils.h
+++ b/genl/genl_utils.h
@@ -1,6 +1,7 @@
 #ifndef _TC_UTIL_H_
 #define _TC_UTIL_H_ 1
 
+#include "utils.h"
 #include "linux/genetlink.h"
 
 struct genl_util
@@ -13,10 +14,4 @@ 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
diff --git a/include/utils.h b/include/utils.h
index a4133c9..1769ca1 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]))

                 reply	other threads:[~2006-12-08  1:47 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1165542423.3666.15.camel@localhost \
    --to=hadi@cyberus.ca \
    --cc=netdev@vger.kernel.org \
    --cc=shemminger@osdl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).