diff options
author | Chenbo Feng <fengc@google.com> | 2018-03-08 19:18:14 +0900 |
---|---|---|
committer | Chenbo Feng <fengc@google.com> | 2018-03-13 01:37:27 -0700 |
commit | 210d3211fe074a86459ca5cf5270de0e8c23b482 (patch) | |
tree | 0cc60ae57a354b8a3f920c6c4f50d4105dcab97d | |
parent | 350bb6f1ac9484c9e741be166d672ab7fe61e215 (diff) | |
download | platform_external_iptables-210d3211fe074a86459ca5cf5270de0e8c23b482.tar.gz platform_external_iptables-210d3211fe074a86459ca5cf5270de0e8c23b482.tar.bz2 platform_external_iptables-210d3211fe074a86459ca5cf5270de0e8c23b482.zip |
Turn on xt_bpf module in userspaceandroid-wear-9.0.0_r9android-wear-9.0.0_r8android-wear-9.0.0_r7android-wear-9.0.0_r6android-wear-9.0.0_r5android-wear-9.0.0_r4android-wear-9.0.0_r3android-wear-9.0.0_r23android-wear-9.0.0_r22android-wear-9.0.0_r21android-wear-9.0.0_r20android-wear-9.0.0_r2android-wear-9.0.0_r19android-wear-9.0.0_r18android-wear-9.0.0_r17android-wear-9.0.0_r16android-wear-9.0.0_r15android-wear-9.0.0_r14android-wear-9.0.0_r13android-wear-9.0.0_r12android-wear-9.0.0_r11android-wear-9.0.0_r10android-p-preview-3android-p-preview-2android-9.0.0_r47android-9.0.0_r46android-9.0.0_r45android-9.0.0_r44android-9.0.0_r43android-9.0.0_r42android-9.0.0_r41android-9.0.0_r40android-9.0.0_r39android-9.0.0_r38android-9.0.0_r37android-9.0.0_r36android-9.0.0_r35android-9.0.0_r34android-9.0.0_r33android-9.0.0_r32android-9.0.0_r31android-9.0.0_r30android-9.0.0_r22android-9.0.0_r21android-9.0.0_r20android-9.0.0_r19android-9.0.0_r16android-9.0.0_r12android-9.0.0_r11pie-qpr3-s1-releasepie-qpr3-releasepie-qpr3-b-releasepie-qpr2-releasepie-qpr1-s3-releasepie-qpr1-s2-releasepie-qpr1-s1-releasepie-qpr1-releasepie-dr1-releasepie-dr1-devpie-devpie-b4s4-releasepie-b4s4-devp-preview-2
The kernel will use xt_bpf module to collect per interface stats instead
of using xt_qtaguid in future. Turn on the userspace part of xt_bpf so
the related iptable rules and operations can be successfull.
Test: iptables -t raw -I bw_raw_PREROUTING -m bpf --object-pinned /sys/fs/bpf/xtbpf_prog
It should not return error about bpf header not find.
Bug: 72111305
Change-Id: Ic08d73c990e3237478aae97fe2a702f272816265
(clean cherry picked from aosp commit
2b00efe0f8147b53b13908519d1b3405009d6ac0)
-rw-r--r-- | config.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -85,3 +85,6 @@ /* Location of the iptables lock file */ #define XT_LOCK_NAME "/system/etc/xtables.lock" + +/* Define to 1 if you have the <linux/bpf.h> header file. */ +#define HAVE_LINUX_BPF_H 1 |