[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4E4FD338.5080100@pandora.be>
Date: Sat, 20 Aug 2011 17:31:04 +0200
From: Bart De Schuymer <bdschuym@...dora.be>
To: Stephen Hemminger <shemminger@...tta.com>
CC: David Lamparter <equinox@...c24.net>,
Nick Carter <ncarter100@...il.com>,
Ed Swierk <eswierk@...switch.com>, netdev@...r.kernel.org,
bridge@...ux-foundation.org, netfilter-devel@...r.kernel.org
Subject: Re: [RFC] bridge: add netfilter hook for forwarding 802.1D group
addresses
Op 19/08/2011 22:58, Stephen Hemminger schreef:
> Signed-off-by: Stephen Hemminger<shemminger@...tta.com>
>
> ---
> include/linux/netfilter_bridge.h | 5 ++++-
> net/bridge/br_input.c | 15 ++++++++++++---
> net/bridge/netfilter/ebtable_filter.c | 18 ++++++++++++++++--
> 3 files changed, 32 insertions(+), 6 deletions(-)
>
> --- a/include/linux/netfilter_bridge.h 2011-08-19 13:11:51.972125670 -0700
> +++ b/include/linux/netfilter_bridge.h 2011-08-19 13:13:36.452130443 -0700
> @@ -22,7 +22,10 @@
> #define NF_BR_POST_ROUTING 4
> /* Not really a hook, but used for the ebtables broute table */
> #define NF_BR_BROUTING 5
> -#define NF_BR_NUMHOOKS 6
> +/* Packets to link local multicast addresses (01-80-C2-00-00-XX) */
> +#define NF_BR_LINK_LOCAL_IN 6
> +
> +#define NF_BR_NUMHOOKS 7
>
You will need to make sure you don't break backwards compatibility with
the ebtables userspace tool. ebtables.h::struct ebt_replace is a
structure used for communication between userspace and the kernel. It
has the member hook_entry defined like this:
struct ebt_entries __user *hook_entry[NF_BR_NUMHOOKS];
cheers,
Bart
--
Bart De Schuymer
www.artinalgorithms.be
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists