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 A498BA0032; Tue, 16 Nov 2021 00:29:12 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5AB6440E25; Tue, 16 Nov 2021 00:29:12 +0100 (CET) Received: from mail-pg1-f180.google.com (mail-pg1-f180.google.com [209.85.215.180]) by mails.dpdk.org (Postfix) with ESMTP id 2BCC64068C for ; Tue, 16 Nov 2021 00:29:11 +0100 (CET) Received: by mail-pg1-f180.google.com with SMTP id 136so11267442pgc.0 for ; Mon, 15 Nov 2021 15:29:11 -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=OArfxeVtR6TYOR9YFo7RVrAQtyqFMxz9D8SgPCxKzSU=; b=nNRL8b7U5FIHYsmZa2QYrMnzYjGPC5bTqjpQcpguHdToMqLLcOURpJX9C3se8KiPBU G388+t3q7cq1ZYiXzb9xK/FHQNS17PLwFAGdOQWgrlD+ei5m4Do42e9LCKj6FdU4JpSI U8E4Vrou0YypiJXhd+IM2W8JlJZVK8aQ6PkE/6+FZddZ32PbhlQw2FNYbSO1iyin1gav 5Ied087lO56qYg94xHzcxpMAG2Cp6r4V48Kxy8bArGx8yihogBBNl+sF/v+Y5xtjY1HU 2JQCyM5AnsgYQvtyW+22tW99dv4hxZDDsH0haDM43vP7q1mkqGlViQQlAaCo3eMRBvjw kzCQ== 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=OArfxeVtR6TYOR9YFo7RVrAQtyqFMxz9D8SgPCxKzSU=; b=8MtAM6N4hzSW9PBuBotxUspJGvHuLF8iEmAdj1RwizbecZfrc/CoSm4f2Gse8exxS0 5hyjycm6xNkQstxBA0P/1fhsuso55uAEuUuNvpwAqN/tBbB4zjYOfyxU8ddo0mF/QifO r4jqlclauJVe731vrFfFnJ6eqMA8c/6qEgh7NjhWlBBE7L4r6JUEHnX8glLUEODbN8yK 32ffmhFCnZymnq9tCGlK0HWrfLDS6he/BzzzwsWi30SBd2tCUQM+IeAuid02Qzl/78tV N02z6+4ty6T54yoHNEjvGFkZRqqBadCYoZtvyDpD2cflDv26Mi6XH2r7WleOEEbttRYU EDhA== X-Gm-Message-State: AOAM532P/wZkG6HpxGQpcUrzP0ewiubyGtwTyKI/69sxm1nm7iZ063qj Kky0q00ofdZ/7ekignkELf4sBAWoP2PM4w== X-Google-Smtp-Source: ABdhPJxDdnmByZOoh+yI4fsAju1NbpD37kQBKNLR/FD++QEH089/Qy6iu36Ab6gZTQhwT/wPzUavcA== X-Received: by 2002:a62:1544:0:b0:49f:f74e:8327 with SMTP id 65-20020a621544000000b0049ff74e8327mr36201263pfv.55.1637018949924; Mon, 15 Nov 2021 15:29:09 -0800 (PST) Received: from hermes.local (204-195-33-123.wavecable.com. [204.195.33.123]) by smtp.gmail.com with ESMTPSA id d7sm16598641pfj.91.2021.11.15.15.29.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Nov 2021 15:29:09 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Luca Boccassi Subject: [PATCH v4] test/bpf_convert: do not require DNS lookup Date: Mon, 15 Nov 2021 15:29:07 -0800 Message-Id: <20211115232907.118583-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 Aced-by: Luca Boccassi --- v4 - yet another spelling error 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