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 C23BCA034F; Tue, 9 Nov 2021 22:04:10 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4FA3940E03; Tue, 9 Nov 2021 22:04:10 +0100 (CET) Received: from mail-pf1-f179.google.com (mail-pf1-f179.google.com [209.85.210.179]) by mails.dpdk.org (Postfix) with ESMTP id A44934068B for ; Tue, 9 Nov 2021 22:04:08 +0100 (CET) Received: by mail-pf1-f179.google.com with SMTP id n85so532188pfd.10 for ; Tue, 09 Nov 2021 13:04:08 -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:mime-version :content-transfer-encoding; bh=2LGeuD53yZx9YsZsOKqEeWcCYulThRiVzIUy18Rw4kU=; b=JQWB87hmMEwp9OzQqaipARWOYz0xZw9Xye//Qlm5k3t7GvXRO8zFGq4e5AKIVzttaa 4F5ZWdYI4mUF7VHtm5HYxAqji5O7u6lpHgZBPbi5Jl+p/RKPHbvMm6vIrsraMExRj8ud nNaiL+zRQyC8G4aFxfSLVbmq/rXsfYC2hi+Ck2ycklUxME58qR7Imo2puQH3uf5xta1T qGcNZG3hLGMSs1xSR61iKqDoHu5k7fQbIE+T61vW7tOoMYr0o43iE3LW6QGw3aEaGYE8 SKbP5u8RJztWSYyn0iyou2C7WnMoNJ+N9QmywkElOv8EYkolBPJ+5Be4k91DuP2ntFIH RLWg== 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:mime-version :content-transfer-encoding; bh=2LGeuD53yZx9YsZsOKqEeWcCYulThRiVzIUy18Rw4kU=; b=HPIL9pq+zPV11lD2J+RfGxUV0PxlCDIZwj3WTPFJb0pL0oPCqxkFJmMAgFy5fST6S/ D457+Lh9miNmsUyNrJfAwQen+fSz9Bz8gBFc98yfD2/3S+r1wacGRuB+lYp9ViQKdWKP hjswLYIYRXjmPn/tMgfteoatxdU9OphpRehqMyCvkCYK4zlcM+s0LH+pN6Pwc1gccZ0O vydNRglPnkWaneEmG7TDQIpokvKc0Z4KnflqcrLJHyjmfwqFu/giXOKQh1weHIdoM46f +Q59tOeuYMwvGrluGdP2J4gJgMfOIdq2xb4IhAul/nu6THYZjc2tBoboquO7IOM36vKl Zxyg== X-Gm-Message-State: AOAM533NGYWtv/HwYenm/x6nKlpxL12WebPNpBLDcMdgCd1BrT0aLJ+s tB0c48pbaKgR2Ukz0bzJi0W77A== X-Google-Smtp-Source: ABdhPJyg9LPUzP1ltYKMuckPlcN6cHGO2V8Eru0QkSzsXCTzlOZ54sQjDpfP0AbL04lir/7rldVZkA== X-Received: by 2002:a63:2f83:: with SMTP id v125mr8275638pgv.253.1636491847747; Tue, 09 Nov 2021 13:04:07 -0800 (PST) Received: from hermes.local (204-195-33-123.wavecable.com. [204.195.33.123]) by smtp.gmail.com with ESMTPSA id x14sm3652706pjl.27.2021.11.09.13.04.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Nov 2021 13:04:07 -0800 (PST) From: Stephen Hemminger To: konstantin.ananyev@intel.com, bluca@debian.org Cc: dev@dpdk.org, Stephen Hemminger Date: Tue, 9 Nov 2021 13:04:03 -0800 Message-Id: <20211109210403.114391-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH] test/bpf_convert: do not require DNS lookup 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 Sender: "dev" These tests are testing with strings with hostname (dpdk.org) and this makes test code do a DNS lookup. In container test runs, DNS is unavailable. Replace dpdk.org with the current IP and IPV6 addresses. Actual addresses don't matter the purpose of the test is to BPF code conversion, not any packets. Reported-by: Luca Boccassi Signed-off-by: Stephen Hemminger --- 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..15d39a72b578 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 92.243.24.197 and not (port 80 or port 25)", + "host 2001:4b98:dc0:43:216:3eff:feb6:2d88 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