From patchwork Tue Nov 3 23:48:45 2015
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: Justin Pettit
X-Patchwork-Id: 539639
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 4EA9914131F
for ;
Wed, 4 Nov 2015 10:49:09 +1100 (AEDT)
Authentication-Results: ozlabs.org;
dkim=fail reason="signature verification failed" (2048-bit key;
unprotected) header.d=nicira_com.20150623.gappssmtp.com
header.i=@nicira_com.20150623.gappssmtp.com header.b=waQkYYPq;
dkim-atps=neutral
Received: from archives.nicira.com (localhost [127.0.0.1])
by archives.nicira.com (Postfix) with ESMTP id CB7F7105E6;
Tue, 3 Nov 2015 15:48:57 -0800 (PST)
X-Original-To: dev@openvswitch.org
Delivered-To: dev@openvswitch.org
Received: from mx3v3.cudamail.com (mx3.cudamail.com [64.34.241.5])
by archives.nicira.com (Postfix) with ESMTPS id C4AB01058F
for ; Tue, 3 Nov 2015 15:48:56 -0800 (PST)
Received: from bar4.cudamail.com (localhost [127.0.0.1])
by mx3v3.cudamail.com (Postfix) with ESMTPS id 4ABCB162EFC
for ; Tue, 3 Nov 2015 16:48:56 -0700 (MST)
X-ASG-Debug-ID: 1446594536-03dc2118c94ccf0001-byXFYA
Received: from mx3-pf3.cudamail.com ([192.168.14.3]) by bar4.cudamail.com
with
ESMTP id C9A5OPKSNCQct5YR (version=TLSv1 cipher=DHE-RSA-AES256-SHA
bits=256 verify=NO) for ;
Tue, 03 Nov 2015 16:48:56 -0700 (MST)
X-Barracuda-Envelope-From: jpettit@nicira.com
X-Barracuda-RBL-Trusted-Forwarder: 192.168.14.3
Received: from unknown (HELO mail-pa0-f51.google.com) (209.85.220.51)
by mx3-pf3.cudamail.com with ESMTPS (RC4-SHA encrypted);
4 Nov 2015 00:03:23 -0000
Received-SPF: unknown (mx3-pf3.cudamail.com: Multiple SPF records returned)
X-Barracuda-RBL-Trusted-Forwarder: 209.85.220.51
Received: by pabfh17 with SMTP id fh17so32555211pab.0
for ; Tue, 03 Nov 2015 15:48:55 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=nicira_com.20150623.gappssmtp.com; s=20150623;
h=from:to:subject:date:message-id:in-reply-to:references;
bh=Dgn93QARlujGuSp1JLZS51ffMlYO/zv2BnMYCNdaQ9I=;
b=waQkYYPqiGLtMDnFiAhyyRzDoW83Ku3upvMpEAc5AiZH8EJhvc2mBpput6NJ54X8sT
nKbAhKburMQc+/oBPBJqL2d1jb/9gONWFRE/2PCCYtKKVwrDtYq6FxvNJe9GdAAMW37+
b7usHBlbBQKDALb0MgQvY6aXnSLwWHq9bGc2RXNzRW/TwweD1ycUrsijw3cduyWY4OcU
Ie+Pc30hRDOkkMgM0jZEyz//e9GSs+i9NZ0jw/tfAKchsUqS8/p7q/eCXUzM+LtOGQsL
Ma3L5tZ6tU36zsEKYjnK3TYC+okDdFRC1yKFvNck6UjRALypWxQHCLsZFzqfxzNGLHx3
z7zw==
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=df91uytJNVNk1KL1jT8HHvYSCpJAxCDlrvtsLxy0Dd7eRuC/b0NIVfDv3Zm7C72yzC
h7rxR6FQ1YxDYxeR2QGLtk4cp8Utv/e7q/RIdndnC+wGqm1MNiUfhDU6DQWTMurDhgUM
H69hbv6i6AFv2zOKKHqp6WRvZoT+X4is4P4hNPLqr8VZNaCVUEhOU3SpGFM7vG47JS4U
uUG+JvD3kEPRLrCmzM+Us6/xA50LyCMbsMD4+OfVcb4WWiQ/1dNc5deQlPs7/qMfgK/w
A98cGhgdvcabhbca9VseyT517UxQrh5htZE9z/03syZDoNMtX7/a+mFy1ovaJs2Qoi1g
ms5w==
X-Gm-Message-State:
ALoCoQnMR8kPZNKh7DvG/jMDJQNv+uotGxrV4OAayJxO444Pv0Usi+82Rjplr+0Zccy8bKARrK9B
X-Received: by 10.66.145.67 with SMTP id ss3mr20146077pab.142.1446594535277;
Tue, 03 Nov 2015 15:48:55 -0800 (PST)
Received: from localhost.localdomain (c-67-161-8-206.hsd1.ca.comcast.net.
[67.161.8.206]) by smtp.gmail.com with ESMTPSA id
qf2sm28725441pbb.3.2015.11.03.15.48.54 for
(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
Tue, 03 Nov 2015 15:48:54 -0800 (PST)
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-V3-1102066123
X-CudaMail-DTE: 110315
X-CudaMail-Originating-IP: 209.85.220.51
Date: Tue, 3 Nov 2015 15:48:45 -0800
X-ASG-Orig-Subj: [##CM-V3-1102066123##][ICMP v2 2/7] ovn-sb: Fix "ip.ttl--"
lower limit description.
Message-Id: <1446594530-22162-3-git-send-email-jpettit@nicira.com>
X-Mailer: git-send-email 1.7.5.4
In-Reply-To: <1446594530-22162-1-git-send-email-jpettit@nicira.com>
References: <1446594530-22162-1-git-send-email-jpettit@nicira.com>
X-Barracuda-Connect: UNKNOWN[192.168.14.3]
X-Barracuda-Start-Time: 1446594536
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] [ICMP v2 2/7] 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
Acked-by: Russell Bryant
---
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