From mboxrd@z Thu Jan 1 00:00:00 1970 From: Florian Westphal Subject: Re: [PATCH nft 1/8] tests: adjust output to silence warnings Date: Fri, 27 Oct 2017 14:52:02 +0200 Message-ID: <20171027125202.GO19457@breakpoint.cc> References: <20171026230611.14269-1-fw@strlen.de> <20171026230611.14269-2-fw@strlen.de> <20171027102906.GA14147@salvia> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Florian Westphal , netfilter-devel@vger.kernel.org To: Pablo Neira Ayuso Return-path: Received: from Chamillionaire.breakpoint.cc ([146.0.238.67]:34194 "EHLO Chamillionaire.breakpoint.cc" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752477AbdJ0MwU (ORCPT ); Fri, 27 Oct 2017 08:52:20 -0400 Content-Disposition: inline In-Reply-To: <20171027102906.GA14147@salvia> Sender: netfilter-devel-owner@vger.kernel.org List-ID: Pablo Neira Ayuso wrote: > > index 43ac0909195f..91f7b9e1c472 100644 > > --- a/tests/py/inet/icmpX.t > > +++ b/tests/py/inet/icmpX.t > > @@ -3,8 +3,8 @@ > > *inet;test-inet;input > > > > ip protocol icmp icmp type echo-request;ok;icmp type echo-request > > -icmp type echo-request;ok > > +icmp type echo-request;ok;meta nfproto ipv4 icmp type echo-request > > I read a couple of times your description above and I must be > overlooking anything. > > To me, "icmp type echo-request" in bridge/inet/netdev should result in > two implicit dependencies, so this ends up looking like this: > > 1) check for IPv4, then... > 2) check for ICMP in iph->protocol, then... > 3) check for ICMP type. > > This would be the default reasonable behaviour. > > Then, we have to deal with specific corner cases, where we should > cancel dependencies. > > Am I missing anything? Sorry, I overlooked this on my first reply. Your assesment is correct, that is indeed the default reasonable behaviour, but, when removing, we have limited information on the rule at the moment. So this is really: 1) check for IPv4, then... 2) check for some l4 protocol ... from a dependency removal perspective. and 2) doesn't provide enough information to decide if the dependency is needed or not.