OffloadUtilsTest - make test pass on 4.19
It turns out my initial guess that behaviour is 4.14+
and my follow up of 5.4+ were both wrong, and it's
actually 4.19 and up... Third time's the charm.
Test: build, atest
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: If1a454fef37cacb23e4f0f59c0154ae905970d84
diff --git a/server/OffloadUtilsTest.cpp b/server/OffloadUtilsTest.cpp
index 5ca841f..1a71c98 100644
--- a/server/OffloadUtilsTest.cpp
+++ b/server/OffloadUtilsTest.cpp
@@ -261,8 +261,8 @@
(android::bpf::getBpfSupportLevel() >= android::bpf::BpfLevel::EXTENDED_4_14);
// Older kernels return EINVAL instead of ENOENT due to lacking proper error propagation...
const int errNOENT =
- (android::bpf::getBpfSupportLevel() >= android::bpf::BpfLevel::EXTENDED_5_4) ? ENOENT
- : EINVAL;
+ (android::bpf::getBpfSupportLevel() >= android::bpf::BpfLevel::EXTENDED_4_19) ? ENOENT
+ : EINVAL;
int clatBpfFd = ingress ? getClatIngressProgFd(ethernet) : getClatEgressProgFd(ethernet);
ASSERT_GE(clatBpfFd, 3);