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 72CE2A0032; Tue, 16 Nov 2021 00:23:44 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 095EB407FF; Tue, 16 Nov 2021 00:23:44 +0100 (CET) Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) by mails.dpdk.org (Postfix) with ESMTP id E82FA40141 for ; Tue, 16 Nov 2021 00:23:41 +0100 (CET) Received: by mail-pl1-f170.google.com with SMTP id b11so15707539pld.12 for ; Mon, 15 Nov 2021 15:23:41 -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=qtApeUjt7zneXr+cOe/6/8LE7S4bGsUc3+CC4W+WCiU=; b=yTnIyHn86Acb4MBkFU2oPCp4Qz7PfLZyGeuqUY9xEOqNiBqgEH7fPCeNuIrxNfLBce l+Av2Y7VXcZSvi9XKoOME2hewh9viuXKPUY96qIEYHZ4xVpa3TUfzWxoEPeWzF201nx+ OmVemN3/xFU+NkFH4dBUXGszsO4SQohzAryI7fdM0P0ZA8bwFcp2LalCmNb6BNW62utz f8P0wuj9RITN4o5GTYWE1kNaOmLp1g7881Ifrro/YXnFDn//sncwDIfzVK5FwZ/2w8lb g+dAWqYTQVMfkCN5GchwsXlhslrT79AIR+71FrsftKyg3gv5kCIkkHmJs/j9ECV8Cw0u J8ew== 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=qtApeUjt7zneXr+cOe/6/8LE7S4bGsUc3+CC4W+WCiU=; b=uwT4aUevwEHtQ/4Z3kIffLbgowQyM0DiCFZuUgsudIo/O8z014nKuOn2e5v4Q8aIB4 VDMVnyJAgDEWWz+Lneh4OvrJSCb18R4KlGxVTmiY4IsAgFQlMuU++cBwtXLTOn8i+W56 pslcILo2GQp8uX/c7lsdiBUL0tFMayFjDvT/Vv8dDHSKQDzuTq3+/lYfUtP9F5k9j1Ce 4XSUrNFNgznPXbtETWuipT2DaaLo1Zrtia0/zaKkImnZGXuzZWkfMCkC60lSY8vY+Gqy CMLm8I6usdXFMNf+44A/tbq8IdciW8u1WutfUxzP6ruw87yiU2jf3xN7q8XkpK8SADV6 JV2g== X-Gm-Message-State: AOAM5321N73645M1BNrb4DQwEAx5FXK2sB8UUTvg/OEmLe8g3/HLQv76 24G1086qMWp7t9QUEvDaN9FIgSL/td9rCw== X-Google-Smtp-Source: ABdhPJxj/GmzjZw+JP3zS9Tvd8TZD7NeVl7RH5qy3M4kITJIuN1CzhHRZfnqeSA8GwLL2nAl1j+Mww== X-Received: by 2002:a17:902:8c8c:b0:142:7999:67fb with SMTP id t12-20020a1709028c8c00b00142799967fbmr39189710plo.24.1637018620483; Mon, 15 Nov 2021 15:23:40 -0800 (PST) Received: from hermes.local (204-195-33-123.wavecable.com. [204.195.33.123]) by smtp.gmail.com with ESMTPSA id nn15sm354426pjb.11.2021.11.15.15.23.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Nov 2021 15:23:39 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Luca Boccassi Subject: [PATCH v3] test/bpf_convert: do not require DNS lookup Date: Mon, 15 Nov 2021 15:23:37 -0800 Message-Id: <20211115232337.118084-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211110161848.34050-1-stephen@networkplumber.org> References: <20211110161848.34050-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 which is validating that code generated in classic BPF can be succesfully converted to eBPF. Signed-off-by: Stephen Hemminger Acked-by: Luca Boccassi --- v3 - fix typos in commit message 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