/packages/modules/Connectivity/tests/mts/ |
D | bpf_existence_test.cpp | 32 using android::bpf::isAtLeastKernelVersion; 194 DO_EXPECT(IsAtLeastR() && !IsAtLeastS() && isAtLeastKernelVersion(4, 9, 0), PLATFORM_ONLY_IN_R); in TEST_F() 197 if (IsAtLeastS()) ASSERT_TRUE(isAtLeastKernelVersion(4, 9, 0)); in TEST_F() 199 DO_EXPECT(IsAtLeastS() && isAtLeastKernelVersion(5, 10, 0), MAINLINE_FOR_S_5_10_PLUS); in TEST_F() 205 DO_EXPECT(IsAtLeastT() && isAtLeastKernelVersion(4, 14, 0), MAINLINE_FOR_T_4_14_PLUS); in TEST_F() 206 DO_EXPECT(IsAtLeastT() && isAtLeastKernelVersion(4, 19, 0), MAINLINE_FOR_T_4_19_PLUS); in TEST_F() 207 DO_EXPECT(IsAtLeastT() && isAtLeastKernelVersion(5, 15, 0), MAINLINE_FOR_T_5_15_PLUS); in TEST_F() 210 if (IsAtLeastU()) ASSERT_TRUE(isAtLeastKernelVersion(4, 14, 0)); in TEST_F() 212 DO_EXPECT(IsAtLeastU() && isAtLeastKernelVersion(5, 10, 0), MAINLINE_FOR_U_5_10_PLUS); in TEST_F() 215 if (IsAtLeastV()) ASSERT_TRUE(isAtLeastKernelVersion(4, 19, 0)); in TEST_F() [all …]
|
/packages/modules/Connectivity/netd/ |
D | BpfHandler.cpp | 80 if (!bpf::isAtLeastKernelVersion(4, 9, 0)) { in initPrograms() 85 if (modules::sdklevel::IsAtLeastU() && !bpf::isAtLeastKernelVersion(4, 14, 0)) { in initPrograms() 112 if (bpf::isAtLeastKernelVersion(4, 14, 0)) { in initPrograms() 131 if (bpf::isAtLeastKernelVersion(5, 4, 0)) { in initPrograms() 138 if (bpf::isAtLeastKernelVersion(5, 10, 0)) { in initPrograms() 144 if (bpf::isAtLeastKernelVersion(4, 19, 0)) { in initPrograms() 169 if (bpf::isAtLeastKernelVersion(5, 4, 0)) { in initPrograms() 174 if (bpf::isAtLeastKernelVersion(5, 10, 0)) { in initPrograms() 270 if (bpf::isAtLeastKernelVersion(4, 14, 0)) { in initMaps()
|
/packages/modules/Connectivity/netbpfload/ |
D | NetBpfLoad.cpp | 321 if (isAtLeastT && !isAtLeastKernelVersion(4, 9, 0)) { in doLoad() 327 if (isAtLeastU && !isAtLeastKernelVersion(4, 14, 0)) { in doLoad() 334 if (isAtLeastV && !isAtLeastKernelVersion(4, 19, 0)) { in doLoad() 341 if (isAtLeastV && isKernel32Bit() && isAtLeastKernelVersion(5, 16, 0)) { in doLoad() 361 if (isKernelVersion(maj, min) && !isAtLeastKernelVersion(maj, min, sub)) { \ in doLoad() 380 if (isUserspace32bit() && isAtLeastKernelVersion(6, 2, 0)) { in doLoad() 423 isAtLeastKernelVersion(5, 13, 0)) return 1; in doLoad()
|
D | loader.cpp | 569 if (!isAtLeastKernelVersion(4, 14, 0)) return true; in mapMatchesExpectations() 709 if (type == BPF_MAP_TYPE_DEVMAP && !isAtLeastKernelVersion(4, 14, 0)) { in createMaps() 719 if (type == BPF_MAP_TYPE_DEVMAP_HASH && !isAtLeastKernelVersion(5, 4, 0)) { in createMaps() 774 if (isAtLeastKernelVersion(4, 15, 0)) in createMaps() 1018 if (isAtLeastKernelVersion(4, 15, 0)) in loadCodeSections()
|
/packages/modules/Connectivity/staticlibs/native/bpf_headers/include/bpf/ |
D | KernelUtils.h | 45 static inline bool isAtLeastKernelVersion(unsigned major, unsigned minor, unsigned sub) { in isAtLeastKernelVersion() function 50 return isAtLeastKernelVersion(major, minor, 0) && !isAtLeastKernelVersion(major, minor + 1, 0); in isKernelVersion()
|
D | BpfMap.h | 64 if (isAtLeastKernelVersion(4, 14, 0)) { in abortOnMismatch()
|
/packages/modules/Connectivity/staticlibs/native/tcutils/tests/ |
D | tcutils_test.cpp | 85 const int errNOENT = bpf::isAtLeastKernelVersion(4, 19, 0) ? ENOENT : EINVAL; in TEST() 121 const int errNOENT = bpf::isAtLeastKernelVersion(4, 19, 0) ? ENOENT : EINVAL; in TEST()
|
/packages/modules/Connectivity/service/jni/ |
D | com_android_server_TestNetworkService.cpp | 77 if (!bpf::isAtLeastKernelVersion(6, 0, 0)) { in createTunTapImpl()
|
/packages/modules/Connectivity/staticlibs/native/bpf_headers/ |
D | BpfRingbufTest.cpp | 49 if (!android::bpf::isAtLeastKernelVersion(5, 8, 0)) { in SetUp()
|
/packages/modules/Connectivity/staticlibs/native/bpfmapjni/ |
D | com_android_net_module_util_BpfMap.cpp | 62 if (bpf::isAtLeastKernelVersion(4, 14, 0)) { in com_android_net_module_util_BpfMap_nativeBpfFdGet()
|
/packages/modules/Connectivity/tests/native/connectivity_native_test/ |
D | connectivity_native_test.cpp | 50 if (!android::bpf::isAtLeastKernelVersion(5, 4, 0)) in SetUp()
|
/packages/modules/Connectivity/staticlibs/native/tcutils/ |
D | tcutils.cpp | 498 static bool is_pre_5_11_kernel = !bpf::isAtLeastKernelVersion(5, 11, 0); in isEthernet()
|
/packages/modules/DnsResolver/tests/ |
D | resolv_integration_test.cpp | 83 if (!android::bpf::isAtLeastKernelVersion(4, 9, 0)) \ 177 if (!android::bpf::isAtLeastKernelVersion(major, minor, sub)) \
|