From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Phil Sutter <phil@nwl.cc>, Jan Engelhardt <jengelh@inai.de>,
netfilter-devel@vger.kernel.org,
Arturo Borrero Gonzalez <arturo@netfilter.org>
Subject: Re: [PATCH] build: put xtables.conf in EXTRA_DIST
Date: Tue, 17 Jan 2023 17:04:40 +0100 [thread overview]
Message-ID: <Y8bHGL+CIfiuvpAr@salvia> (raw)
In-Reply-To: <Y8bGxk6lfqtLUfQR@orbyte.nwl.cc>
On Tue, Jan 17, 2023 at 05:03:18PM +0100, Phil Sutter wrote:
> On Tue, Jan 17, 2023 at 04:56:35PM +0100, Pablo Neira Ayuso wrote:
> > On Tue, Jan 17, 2023 at 04:50:27PM +0100, Phil Sutter wrote:
> > > On Mon, Jan 16, 2023 at 06:18:34PM +0100, Jan Engelhardt wrote:
> > > >
> > > > On Monday 2023-01-16 12:57, Pablo Neira Ayuso wrote:
> > > > >On Fri, Jan 13, 2023 at 12:47:30PM +0100, Phil Sutter wrote:
> > > > >
> > > > >IIRC ebtables is using a custom ethertype file, because definitions
> > > > >are different there.
> > > > >
> > > > >But is this installed file used in any way these days?
> > > >
> > > > Probably not; the version I have has this to say:
> > > >
> > > > # This list could be found on:
> > > > # http://www.iana.org/assignments/ethernet-numbers
> > > > # http://www.iana.org/assignments/ieee-802-numbers
> > > >
> > > > With such official-ness, ebtables's ethertypes has a rather low priority.
> > >
> > > This header statement exists even in legacy ebtables repo' version. I
> > > fear the opposite is the case and everyone's rather copying from ebtables
> > > or iptables just to provide /etc/ethertypes without depending on the
> > > tools.
> > >
> > > My local Gentoo install at least has /etc/ethertypes exactly as in
> > > ebtables repo and the package source states "File extracted from the
> > > iptables tarball".
> > >
> > > Maybe we're the original source?
> >
> > In ebtables, there _PATH_ETHERTYPES which is indirectly used by
> > getethertypebyname() by a few extensions.
> >
> > In iptables, this code exists too, using a different definition:
> >
> > include/xtables.h:#define XT_PATH_ETHERTYPES "/etc/ethertypes"
> >
> > extensions/libebt_arp.c: ent = xtables_getethertypebyname(argv[optind - 1]);
> > extensions/libebt_vlan.c: ethent = xtables_getethertypebyname(optarg);
> >
> > It seems this file is required by a few extensions and the translation
> > infrastructure.
>
> Thanks for investigating. I guess dropping a file we depend on to exist
> *and* introduced in the first place is shooting one's own foot with
> extra steps. Also packagers are used to ignore the file (if not needed)
> already. :)
TBH, I thought this was too a left-over, it is good to revisit stuff.
next prev parent reply other threads:[~2023-01-17 16:04 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-12 22:55 [PATCH] build: put xtables.conf in EXTRA_DIST Jan Engelhardt
2023-01-13 11:47 ` Phil Sutter
2023-01-13 21:24 ` Jan Engelhardt
2023-01-16 11:57 ` Pablo Neira Ayuso
2023-01-16 16:31 ` Arturo Borrero Gonzalez
2023-01-16 17:18 ` Jan Engelhardt
2023-01-17 15:50 ` Phil Sutter
2023-01-17 15:56 ` Pablo Neira Ayuso
2023-01-17 16:03 ` Phil Sutter
2023-01-17 16:04 ` Pablo Neira Ayuso [this message]
2023-01-18 7:27 ` Duncan Roe
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=Y8bHGL+CIfiuvpAr@salvia \
--to=pablo@netfilter.org \
--cc=arturo@netfilter.org \
--cc=jengelh@inai.de \
--cc=netfilter-devel@vger.kernel.org \
--cc=phil@nwl.cc \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.