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 769E9A0032; Tue, 16 Nov 2021 00:30:01 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 68141410E7; Tue, 16 Nov 2021 00:30:01 +0100 (CET) Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) by mails.dpdk.org (Postfix) with ESMTP id 4F44B40E25 for ; Tue, 16 Nov 2021 00:30:00 +0100 (CET) Received: by mail-pf1-f176.google.com with SMTP id z6so16395397pfe.7 for ; Mon, 15 Nov 2021 15:30:00 -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=Ah3By0mzhA0z+mE4g7INLXqOIX27k6Hq57rkcEhh+BQ=; b=6N00cH+2IcIhB0O0z+7iaWNcMclnnqdZCYFMUfyvOOvodLBJSS0ErsykQXtYM0R+4S fspiI/8XlVB06TgCzUXHH1VEznPrpiS0G5Qms8mrvRRTD9rqryxciD6M27tW0m9Y//7V 8qr5zeRuLIH6L0nry3JJkITnJeHHlSBAevg7Taj0m8FWKh8Z6Dd+FNSA0RJpKrJhwm3h +gXHWL2e2mPHR9wFw7WGsOoK241yyCo0zv0TEEwROgI8fawoSw4j6vKi0xzlGXhiZmCz yw4k5LyJ3n6nA18mlMmxH+JLZ9gYJ5pJ4KugR+jH88ZQEGf68xEdwH3nNEQ1qArjj4S+ lkVA== 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=Ah3By0mzhA0z+mE4g7INLXqOIX27k6Hq57rkcEhh+BQ=; b=bI2P0JNlKDjoMJHuhFUGSVv+XQ1dqhNqk5anrnTz/FenJTr/EyKGdtx/3G7hGGi++J NzgefwKrqvW7/iZC3CSLnsxGQiN0sZgZne2KiV3wr7acJgTtB/Oj8esGWKXsxMP4tyTO VGNM5udgwctNNW1O8aTOLdB5gXSTgjOP1E4Q1E1Z65NHovduzFiwY4QFkyO+IBTXamKF ZkHJ4nXJs9UkqqpLbgUKstnEvSJt1c9HX0vG7KTvp2/YxbZroO8dd6GhY9caFE5r5DPa 4tp5Qm5Zi2GvdsaZQ99rzdiRTGbZ9Pg3GAZE4oK+CTKOLt7umlr82R8VTwLLasSsGV11 zzpQ== X-Gm-Message-State: AOAM531wLBINntOSNMn/8otvNvtys5wsLmfAxp81sn6hVm4HeWi+BppD hH1IOcBDODvFvrJYS9cESgbIDOf8TWeNtA== X-Google-Smtp-Source: ABdhPJyRQo058vNd9kCN46VHX+A+t3LLtTw0B4l5nl/zLYqG3QyhvRvLhySAQiw/dWgAI2r5A2Sk6Q== X-Received: by 2002:a63:ec4c:: with SMTP id r12mr1878167pgj.143.1637018999075; Mon, 15 Nov 2021 15:29:59 -0800 (PST) Received: from hermes.local (204-195-33-123.wavecable.com. [204.195.33.123]) by smtp.gmail.com with ESMTPSA id f4sm75931pfj.61.2021.11.15.15.29.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Nov 2021 15:29:58 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Luca Boccassi Subject: [PATCH v5] test/bpf_convert: do not require DNS lookup Date: Mon, 15 Nov 2021 15:29:56 -0800 Message-Id: <20211115232956.118682-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211115232337.118084-1-stephen@networkplumber.org> References: <20211115232337.118084-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 (RFC5737) and use IPv6 in one example (RFC3849). Actual addresses don't matter for this test which is validating that code generated in classic BPF can be successfully converted to eBPF. Signed-off-by: Stephen Hemminger Acked-by: Luca Boccassi --- 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