test/bpf: do not require DNS lookup
authorStephen Hemminger <stephen@networkplumber.org>
Mon, 15 Nov 2021 23:29:56 +0000 (15:29 -0800)
committerDavid Marchand <david.marchand@redhat.com>
Tue, 16 Nov 2021 15:22:26 +0000 (16:22 +0100)
commit79b3275ada7d001cd2f5570d03fad090d499b1ab
treed61eb415a2fe41a09b6fc2c6b2a29b603a506be0
parent156eee2177dfccfda9e8b83169da3b069cfec450
test/bpf: do not require DNS lookup

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.

Fixes: 2eccf6afbea9 ("bpf: add function to convert classic BPF to DPDK BPF")

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Luca Boccassi <bluca@debian.org>
app/test/test_bpf.c