Allow bpfloader to handle 'net_shared' subdirectory am: 6d69784cdc
Original change: https://android-review.googlesource.com/c/platform/system/bpf/+/1952237 Change-Id: I789dc82f4ab623d864e5433797665ca4ac3158b7
This commit is contained in:
commit
c9c3c7c994
2 changed files with 8 additions and 3 deletions
|
@ -55,11 +55,16 @@ struct {
|
|||
const char* const dir;
|
||||
const char* const prefix;
|
||||
} locations[] = {
|
||||
// Tethering mainline module
|
||||
// Tethering mainline module: tether offload
|
||||
{
|
||||
.dir = "/apex/com.android.tethering/etc/bpf/",
|
||||
.prefix = "tethering/",
|
||||
},
|
||||
// Tethering mainline module: netd, clatd, ...etc
|
||||
{
|
||||
.dir = "/apex/com.android.tethering/etc/bpf/net_shared/",
|
||||
.prefix = "",
|
||||
},
|
||||
// Core operating system
|
||||
{
|
||||
.dir = "/system/etc/bpf/",
|
||||
|
|
|
@ -28,9 +28,9 @@
|
|||
#include <sys/utsname.h>
|
||||
#include <unistd.h>
|
||||
|
||||
// This is BpfLoader v0.8
|
||||
// This is BpfLoader v0.9
|
||||
#define BPFLOADER_VERSION_MAJOR 0u
|
||||
#define BPFLOADER_VERSION_MINOR 8u
|
||||
#define BPFLOADER_VERSION_MINOR 9u
|
||||
#define BPFLOADER_VERSION ((BPFLOADER_VERSION_MAJOR << 16) | BPFLOADER_VERSION_MINOR)
|
||||
|
||||
#include "bpf/BpfUtils.h"
|
||||
|
|
Loading…
Reference in a new issue