From patchwork Wed Oct 21 07:24:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Justin Pettit X-Patchwork-Id: 533618 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from archives.nicira.com (li376-54.members.linode.com [96.126.127.54]) by ozlabs.org (Postfix) with ESMTP id 3A8C6140787 for ; Wed, 21 Oct 2015 18:25:06 +1100 (AEDT) Received: from archives.nicira.com (localhost [127.0.0.1]) by archives.nicira.com (Postfix) with ESMTP id D4445105FD; Wed, 21 Oct 2015 00:24:52 -0700 (PDT) X-Original-To: dev@openvswitch.org Delivered-To: dev@openvswitch.org Received: from mx1e4.cudamail.com (mx1.cudamail.com [69.90.118.67]) by archives.nicira.com (Postfix) with ESMTPS id D4359105FB for ; Wed, 21 Oct 2015 00:24:51 -0700 (PDT) Received: from bar5.cudamail.com (unknown [192.168.21.12]) by mx1e4.cudamail.com (Postfix) with ESMTPS id 477601E0255 for ; Wed, 21 Oct 2015 01:24:51 -0600 (MDT) X-ASG-Debug-ID: 1445412290-09eadd4c8f7d9f0001-byXFYA Received: from mx1-pf2.cudamail.com ([192.168.24.2]) by bar5.cudamail.com with ESMTP id u7pFLdHeonCt2dj0 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 21 Oct 2015 01:24:50 -0600 (MDT) X-Barracuda-Envelope-From: jpettit@nicira.com X-Barracuda-RBL-Trusted-Forwarder: 192.168.24.2 Received: from unknown (HELO mail-pa0-f48.google.com) (209.85.220.48) by mx1-pf2.cudamail.com with ESMTPS (RC4-SHA encrypted); 21 Oct 2015 07:24:50 -0000 Received-SPF: unknown (mx1-pf2.cudamail.com: Multiple SPF records returned) X-Barracuda-RBL-Trusted-Forwarder: 209.85.220.48 Received: by padhk11 with SMTP id hk11so46844132pad.1 for ; Wed, 21 Oct 2015 00:24:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=Dgn93QARlujGuSp1JLZS51ffMlYO/zv2BnMYCNdaQ9I=; b=MtKYi5GUMjS2X9vtIs+f1DzThMv3ZY1k4h+hsrO0mljxT8J6zvjhYJVyOOZ4CZYNtc Ogmo+Zv7TLyeDMpqsR7IkptiRF+tqXkbYPC8E+gYQq+4/vXY2IrXWAAZZHXkjN9FYzwU 4gdBFyU1WwlLwRMVpVYU0oXuR25ImEpnLPHd0tenrm+IYkb5url8IWrdcJOnWvwo1TNg k15WI8QnN86AcgaTG8tcbwbh1RiJOt3MCE77X/fPdHy+0b+ZoXS693a5Njdn3RhVEuGd LVbxBHZC2pxJpQOtk69I/tPcXQpHbaAOgSKKNCGd6fbNtmvYvonlXGMjWzRkRVa9BUVI 9SyQ== X-Gm-Message-State: ALoCoQnPDkWtfYutFNzkT7BWFTPFt0qxtr2jrDj11AzqS/iL/FsPUUWCR3xtLTHJBFqcWPCzjKm4 X-Received: by 10.66.228.233 with SMTP id sl9mr9054479pac.139.1445412289698; Wed, 21 Oct 2015 00:24:49 -0700 (PDT) Received: from localhost.localdomain (c-67-161-8-206.hsd1.ca.comcast.net. [67.161.8.206]) by smtp.gmail.com with ESMTPSA id x6sm7469097pbt.3.2015.10.21.00.24.48 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 21 Oct 2015 00:24:49 -0700 (PDT) X-CudaMail-Envelope-Sender: jpettit@nicira.com X-Barracuda-Apparent-Source-IP: 67.161.8.206 From: Justin Pettit To: dev@openvswitch.org X-CudaMail-Whitelist-To: dev@openvswitch.org X-CudaMail-MID: CM-E2-1020002146 X-CudaMail-DTE: 102115 X-CudaMail-Originating-IP: 209.85.220.48 Date: Wed, 21 Oct 2015 00:24:25 -0700 X-ASG-Orig-Subj: [##CM-E2-1020002146##][PATCH 04/10] ovn-sb: Fix "ip.ttl--" lower limit description. Message-Id: <1445412271-22019-4-git-send-email-jpettit@nicira.com> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1445412271-22019-1-git-send-email-jpettit@nicira.com> References: <1445412271-22019-1-git-send-email-jpettit@nicira.com> X-Barracuda-Connect: UNKNOWN[192.168.24.2] X-Barracuda-Start-Time: 1445412290 X-Barracuda-Encrypted: DHE-RSA-AES256-SHA X-Barracuda-URL: https://web.cudamail.com:443/cgi-mod/mark.cgi X-ASG-Whitelist: Header =?UTF-8?B?eFwtY3VkYW1haWxcLXdoaXRlbGlzdFwtdG8=?= X-Virus-Scanned: by bsmtpd at cudamail.com X-Barracuda-BRTS-Status: 1 Subject: [ovs-dev] [PATCH 04/10] ovn-sb: Fix "ip.ttl--" lower limit description. X-BeenThere: dev@openvswitch.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dev-bounces@openvswitch.org Sender: "dev" To decrement the IP TTL, the existing TTL can't be less than two. The field is not bit-maskable, though, so "ip.ttl < 2" will not work. Signed-off-by: Justin Pettit --- ovn/ovn-sb.xml | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/ovn/ovn-sb.xml b/ovn/ovn-sb.xml index 9c2d411..e674f3a 100644 --- a/ovn/ovn-sb.xml +++ b/ovn/ovn-sb.xml @@ -870,7 +870,8 @@ Decrements the IPv4 or IPv6 TTL. If this would make the TTL zero or negative, then processing of the packet halts; no further actions are processed. (To properly handle such cases, a - higher-priority flow should match on ip.ttl < 2.) + higher-priority flow should match on + ip.ttl == {0, 1};.)

Prerequisite: ip