Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3985546imm; Wed, 5 Sep 2018 08:57:23 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYhQfgblay54sYK71rOw4nm2O17Nb8UbjgpDkgcL09OlsZqijd2EVk4fiel8hpiyG6MbS9T X-Received: by 2002:a17:902:1745:: with SMTP id i63-v6mr39392886pli.3.1536163043238; Wed, 05 Sep 2018 08:57:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536163043; cv=none; d=google.com; s=arc-20160816; b=H4EAHxUo5dx4lxN9MFgnLWZlMb1QF49Udqgw08EvIdPBl3VyVYdW+IHK+bAysXif59 ViPPwRleWTOt2QrhszBa/UdnEKMvBUbGTClJ3d20KWVkgKItjIp7HN6JsZTDJVS70vWi rHUYR61ljD8l84hVdGXO7qUbZ5yvMIaHIH4B5Yetp91jgp1ksn/poYMcS5TmqMX5Gbsg r8USA4Rcyjs8yB9Ao2e/nI7VBBxidcCx7U9ZpLTdTgIBh2vqrE+dyZkkjac69Tnjn2V6 RV++gLpBhu+lojU4isB0P4xXCkb4LJzMZEPlNyJn8Md8vSlndre5D0mxuGpYpy3H19w4 PVxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:cc:to:from :subject:organization; bh=jbC2k8Rno0PRp616nfUkIxlIcpbr7LfNlHnCne/5Ml8=; b=wyPNwTl4YouAIPem3cViDkr+i2yIjvfzc3Mcd1ju5EqSek9Lx1bsr/6H1Uk6Rl5HoA czskWuei/t0ukHM1XiKlwPPcs2yqkuNFdLNk8CHInwsJkDRgLVG+mttmk57hec57vp5r R8rhxa2flP2gJDEy2sBoq/BsCMWz3FEMCKNUA3WkJBuA+VuQKRDIqjJQf3LW3vyatBA2 GSggbuJMpx1FcGKa4ZJQI3Gte2YeRtS0xxvlMaeIjzokrDcx+qqnnYNujXCrMaboYKcg 7japd9UTB0tc+4Ct8K6VgzOwY2jJwOHHdpkoym/1uyaNmUCAs2fkKv4klyrURDIaYA9S LcmA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x24-v6si2330621pgh.295.2018.09.05.08.57.08; Wed, 05 Sep 2018 08:57:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727796AbeIEU0H (ORCPT + 99 others); Wed, 5 Sep 2018 16:26:07 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:50584 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726189AbeIEU0H (ORCPT ); Wed, 5 Sep 2018 16:26:07 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 80D70400ADE6; Wed, 5 Sep 2018 15:55:18 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-123-84.rdu2.redhat.com [10.10.123.84]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6F036202706C; Wed, 5 Sep 2018 15:55:17 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 Subject: [PATCH 06/11] UAPI: netfilter: Fix symbol collision issues From: David Howells To: linux-api@vger.kernel.org, linux-kbuild@vger.kernel.org Cc: netfilter-devel@vger.kernel.org, coreteam@netfilter.org, linux-kernel@vger.kernel.org, dhowells@redhat.com Date: Wed, 05 Sep 2018 16:55:16 +0100 Message-ID: <153616291694.23468.3826354165095743891.stgit@warthog.procyon.org.uk> In-Reply-To: <153616286704.23468.584491117180383924.stgit@warthog.procyon.org.uk> References: <153616286704.23468.584491117180383924.stgit@warthog.procyon.org.uk> User-Agent: StGit/unknown-version MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Wed, 05 Sep 2018 15:55:18 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Wed, 05 Sep 2018 15:55:18 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'dhowells@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The netfilter UAPI headers have some symbol collision issues: (1) "enum nfnl_acct_msg_types" is defined twice, and each definition is completely different. Fix this by renaming the one in nfnetlink_cthelper.h to be "enum nfnl_cthelper_types" to be consistent with the other things in that file. (2) There's a disagreement between ipt_ECN.h and ipt_ecn.h over the definition of various IPT_ECN_* constants, leading to an error over IPT_ECN_IP_MASK being substituted when being defined as an enum value in ipt_ecn.h if ipt_ECN.h is #included first. Fix this by removing the conflicting constants from ipt_ECN.h and including ipt_ecn.h instead. Signed-off-by: David Howells cc: netfilter-devel@vger.kernel.org cc: coreteam@netfilter.org --- include/uapi/linux/netfilter/nfnetlink_cthelper.h | 2 +- include/uapi/linux/netfilter_ipv4/ipt_ECN.h | 9 +-------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/include/uapi/linux/netfilter/nfnetlink_cthelper.h b/include/uapi/linux/netfilter/nfnetlink_cthelper.h index a13137afc429..b9313ed0c313 100644 --- a/include/uapi/linux/netfilter/nfnetlink_cthelper.h +++ b/include/uapi/linux/netfilter/nfnetlink_cthelper.h @@ -5,7 +5,7 @@ #define NFCT_HELPER_STATUS_DISABLED 0 #define NFCT_HELPER_STATUS_ENABLED 1 -enum nfnl_acct_msg_types { +enum nfnl_cthelper_types { NFNL_MSG_CTHELPER_NEW, NFNL_MSG_CTHELPER_GET, NFNL_MSG_CTHELPER_DEL, diff --git a/include/uapi/linux/netfilter_ipv4/ipt_ECN.h b/include/uapi/linux/netfilter_ipv4/ipt_ECN.h index e3630fd045b8..d582119ad62a 100644 --- a/include/uapi/linux/netfilter_ipv4/ipt_ECN.h +++ b/include/uapi/linux/netfilter_ipv4/ipt_ECN.h @@ -12,14 +12,7 @@ #include #include - -#define IPT_ECN_IP_MASK (~XT_DSCP_MASK) - -#define IPT_ECN_OP_SET_IP 0x01 /* set ECN bits of IPv4 header */ -#define IPT_ECN_OP_SET_ECE 0x10 /* set ECE bit of TCP header */ -#define IPT_ECN_OP_SET_CWR 0x20 /* set CWR bit of TCP header */ - -#define IPT_ECN_OP_MASK 0xce +#include struct ipt_ECN_info { __u8 operation; /* bitset of operations */