Merge "[NETD-BPF#3] Relocate Tethering/bpf_progs and rename bpf_tethering_headers" am: 5fabfd8dd0
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1870273 Change-Id: I4cb74d3265b36f028e4e08e8c06a3d5b503c6052
This commit is contained in:
@@ -94,7 +94,7 @@ cc_library {
|
|||||||
min_sdk_version: "30",
|
min_sdk_version: "30",
|
||||||
header_libs: [
|
header_libs: [
|
||||||
"bpf_syscall_wrappers",
|
"bpf_syscall_wrappers",
|
||||||
"bpf_tethering_headers",
|
"bpf_connectivity_headers",
|
||||||
],
|
],
|
||||||
srcs: [
|
srcs: [
|
||||||
"jni/*.cpp",
|
"jni/*.cpp",
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ import java.util.concurrent.atomic.AtomicInteger;
|
|||||||
@RunWith(DevSdkIgnoreRunner.class)
|
@RunWith(DevSdkIgnoreRunner.class)
|
||||||
@IgnoreUpTo(Build.VERSION_CODES.R)
|
@IgnoreUpTo(Build.VERSION_CODES.R)
|
||||||
public final class BpfMapTest {
|
public final class BpfMapTest {
|
||||||
// Sync from packages/modules/Connectivity/Tethering/bpf_progs/offload.c.
|
// Sync from packages/modules/Connectivity/bpf_progs/offload.c.
|
||||||
private static final int TEST_MAP_SIZE = 16;
|
private static final int TEST_MAP_SIZE = 16;
|
||||||
private static final String TETHER_DOWNSTREAM6_FS_PATH =
|
private static final String TETHER_DOWNSTREAM6_FS_PATH =
|
||||||
"/sys/fs/bpf/tethering/map_test_tether_downstream6_map";
|
"/sys/fs/bpf/tethering/map_test_tether_downstream6_map";
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ package {
|
|||||||
}
|
}
|
||||||
|
|
||||||
cc_library_headers {
|
cc_library_headers {
|
||||||
name: "bpf_tethering_headers",
|
name: "bpf_connectivity_headers",
|
||||||
vendor_available: false,
|
vendor_available: false,
|
||||||
host_supported: false,
|
host_supported: false,
|
||||||
export_include_dirs: ["."],
|
export_include_dirs: ["."],
|
||||||
@@ -24,7 +24,7 @@
|
|||||||
// Common definitions for BPF code in the tethering mainline module.
|
// Common definitions for BPF code in the tethering mainline module.
|
||||||
// These definitions are available to:
|
// These definitions are available to:
|
||||||
// - The BPF programs in Tethering/bpf_progs/
|
// - The BPF programs in Tethering/bpf_progs/
|
||||||
// - JNI code that depends on the bpf_tethering_headers library.
|
// - JNI code that depends on the bpf_connectivity_headers library.
|
||||||
|
|
||||||
#define BPF_TETHER_ERRORS \
|
#define BPF_TETHER_ERRORS \
|
||||||
ERR(INVALID_IP_VERSION) \
|
ERR(INVALID_IP_VERSION) \
|
||||||
Reference in New Issue
Block a user