DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] test/bpf_convert: do not require DNS lookup
@ 2021-11-09 21:04 Stephen Hemminger
  2021-11-09 22:50 ` Luca Boccassi
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Stephen Hemminger @ 2021-11-09 21:04 UTC (permalink / raw)
  To: konstantin.ananyev, bluca; +Cc: dev, Stephen Hemminger

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 <bluca@debian.org>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
 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


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2021-11-24 18:51 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-09 21:04 [dpdk-dev] [PATCH] test/bpf_convert: do not require DNS lookup Stephen Hemminger
2021-11-09 22:50 ` Luca Boccassi
2021-11-10 15:22 ` Thomas Monjalon
2021-11-10 16:18 ` [PATCH v2] " Stephen Hemminger
2021-11-14 23:39   ` Luca Boccassi
2021-11-24 18:51     ` Luca Boccassi
2021-11-15  3:41   ` Kalesh Anakkur Purayil
2021-11-15 23:23   ` [PATCH v3] " Stephen Hemminger
2021-11-15 23:29     ` [PATCH v4] " Stephen Hemminger
2021-11-15 23:29     ` [PATCH v5] " Stephen Hemminger
2021-11-16 13:31       ` David Marchand

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).