public inbox for netdev@vger.kernel.org 
 help / color / mirror / Atom feed
From: Stephen Hemminger <shemminger@vyatta•com>
To: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6•org>, davem@davemloft•net
Cc: netdev@vger•kernel.org
Subject: Re: [PATCH net-next-2.6 2/3] bridge br_multicast: Make functions less ipv4 dependent.
Date: Mon, 29 Mar 2010 09:12:32 -0700	[thread overview]
Message-ID: <20100329091232.50eae040@nehalam> (raw)
In-Reply-To: <201003291101.o2TB1R0W006599@94.43.138.210.xn.2iij.net>

On Mon, 29 Mar 2010 20:01:27 +0900
YOSHIFUJI Hideaki <yoshfuji@linux-ipv6•org> wrote:

> Introduce struct br_ip{} to store ip address and protocol
> and make functions more generic so that we can support
> both IPv4 and IPv6 with less pain.
> 
> Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6•org>
> ---
>  net/bridge/br_multicast.c |  181 +++++++++++++++++++++++++++++++--------------
>  net/bridge/br_private.h   |   12 +++-
>  2 files changed, 135 insertions(+), 58 deletions(-)
> 
> diff --git a/net/bridge/br_multicast.c b/net/bridge/br_multicast.c
> index 9f0c4f0..5338574 100644
> --- a/net/bridge/br_multicast.c
> +++ b/net/bridge/br_multicast.c
> @@ -27,48 +27,86 @@
>  
>  #include "br_private.h"
>  
> -static inline int br_ip_hash(struct net_bridge_mdb_htable *mdb, __be32 ip)
> +#define IP4_BRIP(ip)	(struct br_ip) {			\
> +				.u.ip4 = ip,			\
> +				.proto = htons(ETH_P_IP),	\
> +			}
> +

Too messy with macros, I will fix.


-- 

  reply	other threads:[~2010-03-29 16:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-29 11:01 [PATCH net-next-2.6 2/3] bridge br_multicast: Make functions less ipv4 dependent YOSHIFUJI Hideaki
2010-03-29 16:12 ` Stephen Hemminger [this message]
2010-03-31  6:24 ` David Miller

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=20100329091232.50eae040@nehalam \
    --to=shemminger@vyatta$(echo .)com \
    --cc=davem@davemloft$(echo .)net \
    --cc=netdev@vger$(echo .)kernel.org \
    --cc=yoshfuji@linux-ipv6$(echo .)org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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