From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D692CC3DA78 for ; Tue, 17 Jan 2023 15:56:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231246AbjAQP4k (ORCPT ); Tue, 17 Jan 2023 10:56:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231191AbjAQP4j (ORCPT ); Tue, 17 Jan 2023 10:56:39 -0500 Received: from mail.netfilter.org (mail.netfilter.org [217.70.188.207]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 99BDA2B282 for ; Tue, 17 Jan 2023 07:56:38 -0800 (PST) Date: Tue, 17 Jan 2023 16:56:35 +0100 From: Pablo Neira Ayuso To: Phil Sutter , Jan Engelhardt , netfilter-devel@vger.kernel.org, Arturo Borrero Gonzalez Subject: Re: [PATCH] build: put xtables.conf in EXTRA_DIST Message-ID: References: <20230112225517.31560-1-jengelh@inai.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: netfilter-devel@vger.kernel.org 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.