Received: by 10.192.165.148 with SMTP id m20csp3272496imm; Mon, 23 Apr 2018 03:50:17 -0700 (PDT) X-Google-Smtp-Source: AIpwx49ewM53S9NsqM7OJW9zo6/Jx4cSsXSeOsQVk1mA0zS259gI3JhOw2zF8WGPmeS4Y/nlqeQp X-Received: by 10.98.174.5 with SMTP id q5mr19408675pff.155.1524480617769; Mon, 23 Apr 2018 03:50:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524480617; cv=none; d=google.com; s=arc-20160816; b=e9FtDZo0xWwnhVgPViMddaNu9bJG/pGgZH3G5xpdhjZYqsIUYkc7ruYpPlRKxeK+hL qFm66mqwpKZveuWi4Wq2k+//uB2hVDUosG1Ayi1Nmgx37mTMxXOA7Hvz3HwTHPRRsCQk wN7bHKxwsi4wV5uxaYbVWq4owSvYKTyir1nuu9+TXMDeFTf9j9VZArfsEAZwbIGjpXEg /8VYUi9rTyDhuxR+nTe0CzFn7tDb5AQuJLjKTyc7Jj7BYggLHDi2UXQnV3QLRqEZ+6w6 2w/is7cBUTIRke7M8Le8wfGl+M8HdR2MB/IS9+i7+gOrm7NlQXax8ZdSNLfwGU+RoGyT OQpA== 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:dkim-signature:arc-authentication-results; bh=ZxTzaXd8LXV/a0gacd3U1CbKtdeF//E3yLZ2fKsa1xY=; b=C53YAHh6Lgur7CqdFQm5d1lUWsT05mco/7XKbyeWnqUlva11mZsNkUmKPuItvaITpk H/qWnQSHhqqbBNxKC+g74X9zEh8kMGnGYk5zwJJO8nG2nUPTC3ED3Z8DiF82EQmcrALo qrx/9yxTvdGH5Cu6OG6KpZ392dVaXfeJG3AS9MhAt+umRsbvaTgNIzQSem517nkq9CG9 ePREVVKrpFMSIEXB+7KfhYrUlXd8obV+/W01bZpNcaTddfIHRMYrSVuoo84euSUndoS9 AY6T/sn/t5WzKJeklXqIBJyd+t1oNPb7ZqaFcjBEv5ek4XKTkwB9tFHSRIYntOsaSlRZ DJMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MndxiUFJ; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m11-v6si10769659pls.337.2018.04.23.03.50.03; Mon, 23 Apr 2018 03:50:17 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MndxiUFJ; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754761AbeDWKst (ORCPT + 99 others); Mon, 23 Apr 2018 06:48:49 -0400 Received: from mail-wr0-f195.google.com ([209.85.128.195]:43381 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754701AbeDWKse (ORCPT ); Mon, 23 Apr 2018 06:48:34 -0400 Received: by mail-wr0-f195.google.com with SMTP id v15-v6so21802734wrm.10; Mon, 23 Apr 2018 03:48:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ZxTzaXd8LXV/a0gacd3U1CbKtdeF//E3yLZ2fKsa1xY=; b=MndxiUFJ2Y4fd4+bvLSiVa+8eO34C8XRlV5C1G7+vhTwsJmnypQ4/rBpSOxpukLOxE F5N+mGaOMRWT696xD6CZG562TssTfq9wP/8KpsHQljcaPyto7f+weT2rEpg30eCC2f7V SeyRw6xj5tPf0CS5Z/vuHpAihfwWrjpepBBdnwxK21UTVsStG9mWFsoTSeH8V1PunCJk iXiVHBs5tHyTKPYfokyJL7WW9h91mjw6vghmN3op7409had8eJ4C+6MvISzrW/eTlF26 lK905VEVtNJxZOFErIcVUqMVnP1zy9wmNP3V2htTHkL/TybLihhvFen+ByRA/cRE4iuf AqPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ZxTzaXd8LXV/a0gacd3U1CbKtdeF//E3yLZ2fKsa1xY=; b=qywIpLQl08Q4HTjSpGkILNliEESowvnxy/IlcBVeS4r9erQp1jLDRgbYvG2mYuTjNb oMCkNYz7YVmwi4u+0g46s69k7acPVKcU1PXZpKtU1dnkHkaUO3GjnHTI7N4/yMzU53fM PvkLvcEyHmX+Q/SSyJpWUcyCt4ddKMO4EaOVB+9WYzg1T8wJgOfVQsenvBG+o09VF2Yu 6uEDPGZBrr70fcDIdR8JEc+1ZsPVGkhzMTjsuVMyvEurcsU5N3WG6OhZSwB+t7GyJSis rKt+fztHhVlSQP+dLlJ/PLs25uUG8qF+oBXrIvxcf8IBY3+LSTppZexS66JE4+5a0Jod 364g== X-Gm-Message-State: ALQs6tDEF+Nlq+689IYXIPDdfyKmDM/oqbB0XdDMwyTHs2AlGyi6bS02 vt9euE9a2sdA3hZ0BEYHapI= X-Received: by 2002:adf:83a2:: with SMTP id 31-v6mr17376626wre.19.1524480513396; Mon, 23 Apr 2018 03:48:33 -0700 (PDT) Received: from localhost.localdomain ([192.135.27.140]) by smtp.gmail.com with ESMTPSA id e185sm8684793wmg.5.2018.04.23.03.48.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 23 Apr 2018 03:48:32 -0700 (PDT) From: Ahmed Abdelsalam To: pablo@netfilter.org, fw@strlen.de, davem@davemloft.net, dav.lebrun@gmail.com, linux-kernel@vger.kernel.org, netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org Cc: Ahmed Abdelsalam Subject: [iptables 2/2] extensions: libip6t_srh: add test-cases for matching previous, next and last SID Date: Mon, 23 Apr 2018 05:48:23 -0500 Message-Id: <1524480503-1883-3-git-send-email-amsalam20@gmail.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1524480503-1883-1-git-send-email-amsalam20@gmail.com> References: <1524480503-1883-1-git-send-email-amsalam20@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds some test-cases to "libip6t_srh.t" for matching previous SID, next SID, and last SID. Signed-off-by: Ahmed Abdelsalam --- extensions/libip6t_srh.t | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/extensions/libip6t_srh.t b/extensions/libip6t_srh.t index 08897d5..88a379e 100644 --- a/extensions/libip6t_srh.t +++ b/extensions/libip6t_srh.t @@ -23,4 +23,8 @@ -m srh ! --srh-tag 0;=;OK -m srh --srh-next-hdr 17 --srh-segs-left-eq 1 --srh-last-entry-eq 4 --srh-tag 0;=;OK -m srh ! --srh-next-hdr 17 ! --srh-segs-left-eq 0 --srh-tag 0;=;OK +-m srh --srh-psid A::2/64 --srh-nsid B2::/128 --srh-lsid C::/0;=;OK +-m srh ! --srh-psid A::2/64 ! --srh-nsid B2::/128 ! --srh-lsid C::/0;=;OK +-m srh --srh-psid A::2 --srh-nsid B2:: --srh-lsid C::;=;OK +-m srh ! --srh-psid A::2 ! --srh-nsid B2:: ! --srh-lsid C::;=;OK -m srh;=;OK -- 2.1.4