Commit graph

5 commits

Author SHA1 Message Date
Elliott Hughes
fc3c7690fe C++17 is the default now.
Test: builds
Change-Id: Ieb3cf0a0c035e1b2fcea4a5e80bb0c1df473349f
2018-12-03 09:36:31 -08:00
Chenbo Feng
1f20ad3d78 Code style clean up
Apply the git clang format on the bpf project to make sure the existing
code compliance with the standard.

Test: project compiles and bpfMapTest pass.
Bug: 112334572
Change-Id: I4774aa2a197be2c671f6fb307c1fc9b71edfeeec
2018-11-28 11:31:36 -08:00
Chenbo Feng
249e2f869e Skip the bpf native tests on old devices
For older devices that doesn't have bpf support, skip the bpf native
tests so we don't get false alarms. Fixed some compiler warning and
added the clang-format check.

Test: ./libnetdbpf_test/libnetdbpf_test
Bug: 119526856
Change-Id: Icb73a8ee9b9dff9a0da28b96578e1245f1f3724f
2018-11-21 12:11:55 -08:00
Bernie Innocenti
b2515ff7ce Disable noisy clang-tidy warning for int and long types
These are hard to avoid when working with POSIX APIs:

  warning: consider replacing 'unsigned int' with 'uint32' [google-runtime-int]

Change-Id: I30047ff05ff680a9337671368e6b82ba88244f79
2018-10-25 22:12:07 +09:00
Chenbo Feng
4c9e9ecc57 Fix the build problem with bpf project
Add the necessary Android.bp file and fix the compile error for the new
bpf project.

Fix the run time restart false alarm in bpf loader.

Bug: 112334572

Test: device boot and dumpsys netd show eBPF object okay, runtime
      restart netd and no bpfloader error showed in logcat.
Change-Id: Iae193bda45e50b7d22479086d6403e3c4fb185c4
2018-10-16 21:17:12 -07:00