Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1430063

Re: [PATCH] bridge: netfilter: spanning tree: Add masked_ether_addr_equal and neatening

From Joe Perches <joe@perches.com>
Newsgroups linux.kernel
Subject Re: [PATCH] bridge: netfilter: spanning tree: Add masked_ether_addr_equal and neatening
Date 2016-06-23 21:10 +0200
Message-ID <rNiaK-60P-21@gated-at.bofh.it> (permalink)
References <rKq4N-7mg-5@gated-at.bofh.it> <rNgLD-4Qw-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, 2016-06-23 at 19:36 +0200, Pablo Neira Ayuso wrote:
> On Wed, Jun 15, 2016 at 01:58:45PM -0700, Joe Perches wrote:
> > 
> > There is code duplication of a masked ethernet address comparison here
> > so make it a separate function instead.
> > 
> > Miscellanea:
> > 
> > o Neaten alignment of FWINV macro uses to make it clearer for the reader
> Applied, thanks.
> 
> > 
> > Signed-off-by: Joe Perches <joe@perches.com>
> > ---
> > 
> > This masked_ether_addr_equal function could go into etherdevice.h,
> > but I don't see another use like it in kernel code.  Is there one?
> This is specific of iptables, not even nftables would use this. So I
> would keep this in the iptables tree.

Did you see the other patch that adds a generic
ether_addr_equal_masked() and uses it in a few
more files?

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] bridge: netfilter: spanning tree: Add masked_ether_addr_equal and neatening Joe Perches <joe@perches.com> - 2016-06-15 23:00 +0200
  Re: [PATCH] bridge: netfilter: spanning tree: Add  masked_ether_addr_equal and neatening Joe Perches <joe@perches.com> - 2016-06-16 08:10 +0200
  Re: [PATCH] bridge: netfilter: spanning tree: Add  masked_ether_addr_equal and neatening Pablo Neira Ayuso <pablo@netfilter.org> - 2016-06-23 19:40 +0200
    Re: [PATCH] bridge: netfilter: spanning tree: Add  masked_ether_addr_equal and neatening Joe Perches <joe@perches.com> - 2016-06-23 21:10 +0200
      Re: [PATCH] bridge: netfilter: spanning tree: Add  masked_ether_addr_equal and neatening Pablo Neira Ayuso <pablo@netfilter.org> - 2016-06-24 11:00 +0200
        [PATCH] etherdevice.h & bridge: netfilter: Add and use ether_addr_equal_masked Joe Perches <joe@perches.com> - 2016-06-24 20:40 +0200
          Re: [PATCH] etherdevice.h & bridge: netfilter: Add and use  ether_addr_equal_masked David Miller <davem@davemloft.net> - 2016-06-28 15:10 +0200
            Re: [PATCH] etherdevice.h & bridge: netfilter: Add and use  ether_addr_equal_masked Pablo Neira Ayuso <pablo@netfilter.org> - 2016-06-30 11:30 +0200
      Re: [PATCH] bridge: netfilter: spanning tree: Add  masked_ether_addr_equal and neatening Pablo Neira Ayuso <pablo@netfilter.org> - 2016-06-24 11:00 +0200

csiph-web