From: Ian Campbell Subject: Re: [PATCH 3/5] hotplug/linux: Improve iptables logic Date: Tue, 20 May 2014 12:28:23 +0100 Message-ID: <1400585303.6946.5.camel@kazak.uk.xensource.com> References: <1400081005-23895-1-git-send-email-s.munaut@whatever-company.com> <1400081005-23895-4-git-send-email-s.munaut@whatever-company.com> <1400170520.883.11.camel@kazak.uk.xensource.com> <1400577468.25175.18.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WmiDb-0003g1-K6 for xen-devel@lists.xenproject.org; Tue, 20 May 2014 11:28:27 +0000 In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Sylvain Munaut Cc: xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org On Tue, 2014-05-20 at 13:23 +0200, Sylvain Munaut wrote: > Hi, > > > > And here the redundant rules are dropped and the rest are reordered > > slightly, which again I think/suppose is safe. > > Yes, it is. Because the rules have no overlap (i.e if one matches, the > other won't). > > I use -A instead of -I (to append rather than insert). > > _HOWEVER_ I just realized that it had another impact which is to add > the rules at the end of the chain rather than at the beginning which > will significantly change things if people have other rules in there. > So I'll change back to using -I and change the logic a bit to handle > this properly. > > Damn, I almost missed that ... I totally missed it too. I suspect the reordering is due to this as well BTW. Ian.