From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9C029A034F; Wed, 10 Nov 2021 17:18:52 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 85E534068B; Wed, 10 Nov 2021 17:18:52 +0100 (CET) Received: from mail-pf1-f182.google.com (mail-pf1-f182.google.com [209.85.210.182]) by mails.dpdk.org (Postfix) with ESMTP id D7B3940683 for ; Wed, 10 Nov 2021 17:18:51 +0100 (CET) Received: by mail-pf1-f182.google.com with SMTP id g18so3088877pfk.5 for ; Wed, 10 Nov 2021 08:18:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=HhcnqT+c1y1vt+70yNewzqnwqLzEVXAbHKU6kkM/bKA=; b=kVo/DOMeeGpEGflBZ3bkoaCHClYZ8CtCkbTSKWOvdAcgqeWeqbTHrcxIQMjFvuaUNu PPVfGUX5qg5mztE/wjLv7zb7t3tafYKHuwtCi+c/cMsB0GZ1nB3NJANvTnWOBC9snYTe glo4wuYSBJlOmcRz/PH7RPs8TCLAinPI+vkdIbGC2emg6H1byP3rb/nCmI1qExJuSiRf B8qsn9LT5KwpjYYTPhEF50ABAtnstnpf2WlHBEDNrbCaReNiV85+WdVA32Kt2I84dCvE Tfzc+rw4ivmc5ztqEhzbO+Nq3OSTDo0Dh5oqPZwC3SAyx16CuU/NEYJJ6yAd6Xfo/D9P F8Aw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=HhcnqT+c1y1vt+70yNewzqnwqLzEVXAbHKU6kkM/bKA=; b=5d5XgY6DbN4k9Hof/wgmcb//WTu2EC6+xOeS7kg6PLRcvZnoTxvW+zPXFdeC8fyKhJ y+Rv6/LCJg0bvBQUYmc5Yl3+G7C+BuwGp9FcuaNfUSI3dAFrWSvg9GpBrl3XR1iYgMXF ha6ZiGgynvi1Ihfn1lFhuVf4tOOAZwxJKE6bccrvp3JfzR4U8i0W/Fu6aE2C6LC6pi4/ WgOE7DUOLtjb05QRhYO42q5AJR2plCMGJZYUOBqTmdN4r+S5tc85Im/C39WMP85gy9zy pISqlY+U7vwRIjBP6VN8MAld6gg3hjV2ksylbNZfA/KQz56hUphbS+fKm/7H+0e7TK6X 0kLg== X-Gm-Message-State: AOAM533NB7810P28szVPD3w4bO/O8aE+2yh3yZ6C/B4c069fFKZQ1u4e 9HN/WqwBEXu5KaGHxbdgdEtZlCn2QjmqPw== X-Google-Smtp-Source: ABdhPJzCxyJxu18PK7J+bFRIiUXZH+NFbLDen/BAjVvJ8+A+W/fh+4mwpgKzT1I0sxoenqHSNlqV1A== X-Received: by 2002:aa7:8611:0:b0:49f:a5b3:14b4 with SMTP id p17-20020aa78611000000b0049fa5b314b4mr341222pfn.30.1636561131024; Wed, 10 Nov 2021 08:18:51 -0800 (PST) Received: from hermes.local (204-195-33-123.wavecable.com. [204.195.33.123]) by smtp.gmail.com with ESMTPSA id e2sm98051pgm.48.2021.11.10.08.18.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Nov 2021 08:18:50 -0800 (PST) From: Stephen Hemminger To: konstantin.ananyev@intel.com, bluca@debian.org Cc: dev@dpdk.org, Stephen Hemminger Subject: [PATCH v2] test/bpf_convert: do not require DNS lookup Date: Wed, 10 Nov 2021 08:18:48 -0800 Message-Id: <20211110161848.34050-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211109210403.114391-1-stephen@networkplumber.org> References: <20211109210403.114391-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org These tests were using strings with hostname (dpdk.org) and this makes test code do a DNS lookup. In container environment used for OpenSuse build, DNS is unavailable. Replace dpdk.org with an IPv4 address reserved for documentation (RFC 5737) and use IPv6 in one example (RFC 3849). Actual addresses don't matter for this test whichis validating tke classic BPF to eBPF for common cases. Signed-off-by: Stephen Hemminger --- v2 - use RFC reserved address app/test/test_bpf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/test/test_bpf.c b/app/test/test_bpf.c index ef861d05e755..785f3e689e10 100644 --- a/app/test/test_bpf.c +++ b/app/test/test_bpf.c @@ -3359,8 +3359,8 @@ static const char * const sample_filters[] = { "dst net 192.168.0.0/24", "dst net 192.168.0.0 mask 255.255.255.0", "port 53", - "host dpdk.org and not (port 80 or port 25)", - "host dpdk.org and not port 80 and not port 25", + "host 192.0.2.1 and not (port 80 or port 25)", + "host 2001:4b98:db0::8 and not port 80 and not port 25", "port not 53 and not arp", "(tcp[0:2] > 1500 and tcp[0:2] < 1550) or (tcp[2:2] > 1500 and tcp[2:2] < 1550)", "ether proto 0x888e", -- 2.30.2