diff options
author | Maciej Żenczykowski <maze@google.com> | 2022-06-21 02:22:51 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2022-06-21 02:22:51 +0000 |
commit | 6025f4716cb9457f55f1d68fa9837771043984d6 (patch) | |
tree | 0fe66da76c065af45a41099eddca759063f1afe2 /common | |
parent | 02869ff64ea48bf4fb75595aa81312d2b353c521 (diff) | |
parent | 1999d0e8864603319f1b07cd9a9b30793d5febc3 (diff) | |
download | net-6025f4716cb9457f55f1d68fa9837771043984d6.tar.gz |
Merge "bpf_helpers.h - add #define's for S/T bpfloader versions" into tm-dev
Diffstat (limited to 'common')
-rw-r--r-- | common/native/bpf_headers/include/bpf/bpf_helpers.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/common/native/bpf_headers/include/bpf/bpf_helpers.h b/common/native/bpf_headers/include/bpf/bpf_helpers.h index ac9f9bcb..3e260285 100644 --- a/common/native/bpf_headers/include/bpf/bpf_helpers.h +++ b/common/native/bpf_headers/include/bpf/bpf_helpers.h @@ -19,6 +19,17 @@ * * ******************************************************************************/ +// The actual versions of the bpfloader that shipped in various Android releases + +// Android P/Q/R: BpfLoader was initially part of netd, +// this was later split out into a standalone binary, but was unversioned. + +// Android S / 12 (api level 31) - added 'tethering' mainline eBPF support +#define BPFLOADER_S_VERSION 2u + +// Android T / 13 Beta 3 (api level 33) - added support for 'netd_shared' +#define BPFLOADER_T_BETA3_VERSION 13u + /* For mainline module use, you can #define BPFLOADER_{MIN/MAX}_VER * before #include "bpf_helpers.h" to change which bpfloaders will * process the resulting .o file. |