Received: by 10.213.65.68 with SMTP id h4csp394733imn; Sat, 31 Mar 2018 00:09:54 -0700 (PDT) X-Google-Smtp-Source: AIpwx4982gXsYB2aJmQoWiwX3hivRFeDRuA8cOWHVMWmfJKksMmqEV6X7RQD6WzkpUhxtMfVAnZ2 X-Received: by 10.99.163.9 with SMTP id s9mr1265453pge.187.1522480194450; Sat, 31 Mar 2018 00:09:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522480194; cv=none; d=google.com; s=arc-20160816; b=nM3iCyn9xCg/ASzQ/vsp+f78xalTejzud0rZMqRO9DAZyMlYjdIkqMYjB5gWrqlLB/ HXkPhJUsWnTAvobu2LPvAMDhYaV7vdCfOlCimaIKSbpRn5bMgMC9cxtzzR8UcbZtNHjv DM/TE9V7ZPJmQ48xqFdbNAMEb+3osTFcoyVCi7KmZl7zOsivXp/JFQzGbHxljFfBW8yS KccejIE3qtsWj8zWqzreOimHXUeynccyIxmyK/jYEF4LMrJOEU3Hoyb4D0st/GEZIrKN Ky17zT8tOlFw8qHD1RdlDsg2xGrGS45zh8jlkoE0UbiClSmZVS12PnF5QckyppOXUBKS kUdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=wuiauNDQSqQu5YkqzG/WdRuW/CgfGteCMXmwcHMYxDQ=; b=xfq2XHjFgEsIX8I4L5+SwnHf17tc0E3SC3pfIfZEHT/THeB5nvt3788Lco5y5QLqRu cWKoquLjhZX5FEkC9aU18SmXAav+DI8mU1cExSUBuWcee+Wsc9WF4aW4OrFMZqE1ptLB AM67ACko44gBVnoTVEKMpEZyvnv9nLvxKqZf3vlrGUEiAzKaSsCCXlvCgkZhNXEkPLGy dbdeNFWCwACGQPv/OrniLE7tg3wH2bmMz/T9mpTPSybO8HBBOUnLfyoUztJvzGIwTstV rFMsuDbXr3nRuU6Bx5T28H+4UYQun6PHxlbTKi3G/n+UJ9W4XT2GFcEWq3JuuchFnoHm 9geA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x3si6816273pge.733.2018.03.31.00.09.08; Sat, 31 Mar 2018 00:09:54 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752904AbeCaHFu (ORCPT + 99 others); Sat, 31 Mar 2018 03:05:50 -0400 Received: from smtprelay0011.hostedemail.com ([216.40.44.11]:52173 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752422AbeCaHFr (ORCPT ); Sat, 31 Mar 2018 03:05:47 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay07.hostedemail.com (Postfix) with ESMTP id E4083181D3368; Sat, 31 Mar 2018 07:05:46 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::::,RULES_HIT:41:355:379:541:800:960:968:973:988:989:1260:1345:1359:1437:1534:1541:1711:1730:1747:1777:1792:2393:2559:2562:3138:3139:3140:3141:3142:3352:3865:3868:4321:4419:5007:6119:6261:7903:10004:10848:11026:11473:11658:11914:12043:12296:12438:12555:12895:12986:13069:13311:13357:14181:14384:14394:14721:21080:21627:30054:30075,0,RBL:47.151.150.235:@perches.com:.lbl8.mailshell.net-62.8.0.100 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:20,LUA_SUMMARY:none X-HE-Tag: idea48_898d745d89849 X-Filterd-Recvd-Size: 2296 Received: from joe-laptop.perches.com (unknown [47.151.150.235]) (Authenticated sender: joe@perches.com) by omf03.hostedemail.com (Postfix) with ESMTPA; Sat, 31 Mar 2018 07:05:45 +0000 (UTC) From: Joe Perches To: Pablo Neira Ayuso , Jozsef Kadlecsik , Florian Westphal Cc: Stephen Hemminger , "David S. Miller" , netfilter-devel@vger.kernel.org, coreteam@netfilter.org, bridge@lists.linux-foundation.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 04/12] bridge: netfilter: Use the new global ether__addr arrays Date: Sat, 31 Mar 2018 00:05:19 -0700 Message-Id: X-Mailer: git-send-email 2.15.0 In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove the local consts and use the new globals. Signed-off-by: Joe Perches --- net/bridge/netfilter/ebt_stp.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/net/bridge/netfilter/ebt_stp.c b/net/bridge/netfilter/ebt_stp.c index 3140eb912d7e..2b7479cc0140 100644 --- a/net/bridge/netfilter/ebt_stp.c +++ b/net/bridge/netfilter/ebt_stp.c @@ -153,8 +153,6 @@ ebt_stp_mt(const struct sk_buff *skb, struct xt_action_param *par) static int ebt_stp_mt_check(const struct xt_mtchk_param *par) { const struct ebt_stp_info *info = par->matchinfo; - const u8 bridge_ula[6] = {0x01, 0x80, 0xc2, 0x00, 0x00, 0x00}; - const u8 msk[6] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff}; const struct ebt_entry *e = par->entryinfo; if (info->bitmask & ~EBT_STP_MASK || info->invflags & ~EBT_STP_MASK || @@ -162,8 +160,8 @@ static int ebt_stp_mt_check(const struct xt_mtchk_param *par) return -EINVAL; /* Make sure the match only receives stp frames */ if (!par->nft_compat && - (!ether_addr_equal(e->destmac, bridge_ula) || - !ether_addr_equal(e->destmsk, msk) || + (!ether_addr_equal(e->destmac, ether_stp_addr) || + !ether_addr_equal(e->destmsk, ether_broadcast_addr) || !(e->bitmask & EBT_DESTMAC))) return -EINVAL; -- 2.15.0