commit | 11ec78bf845db48b388e86712d4693ff9e553697 | [log] [tgz] |
---|---|---|
author | Maciej Żenczykowski <maze@google.com> | Mon Dec 30 06:39:32 2019 -0800 |
committer | Maciej Żenczykowski <maze@google.com> | Tue Jan 14 09:00:51 2020 +0000 |
tree | 8e1b49a4254530d3f90201dff522bd67b8d0472e | |
parent | b601c04f77924d09ffc377ec7c07a3c7e311b27a [diff] |
share eBPF struct definitions between ebpf and C++ netd This is the main commit in a set of 3 commits across 3 diff git repos. The other two are: https://android-review.googlesource.com/c/platform/system/bpf/+/1199649 "remove network specific struct definitions from BpfUtils.h" and https://android-review.googlesource.com/c/platform/frameworks/base/+/1200738 "minor change to keep it building" We move the struct definitions to bpf_shared.h so they can be shared between C++ netd and C ebpf code. They also become typedefs and are renamed for more consistent naming. (there's some weird issue with ebpf compiler on some devices with non-typedef'ed structs) Test: builds, atest Bug: 146787904 Signed-off-by: Maciej Żenczykowski <maze@google.com> Change-Id: I324c0ab9db0186dcea0ec9ee33140909be285bc4