aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChenbo Feng <fengc@google.com>2018-03-08 19:18:14 +0900
committerChenbo Feng <fengc@google.com>2018-03-08 19:30:26 +0900
commit2b00efe0f8147b53b13908519d1b3405009d6ac0 (patch)
tree0cc60ae57a354b8a3f920c6c4f50d4105dcab97d
parentff75e02e65ef4c7b457e245b9d6c3df82aff1798 (diff)
downloadplatform_external_iptables-2b00efe0f8147b53b13908519d1b3405009d6ac0.tar.gz
platform_external_iptables-2b00efe0f8147b53b13908519d1b3405009d6ac0.tar.bz2
platform_external_iptables-2b00efe0f8147b53b13908519d1b3405009d6ac0.zip
Turn on xt_bpf module in userspace
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
-rw-r--r--config.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/config.h b/config.h
index 45a1adf2..7bff59c2 100644
--- a/config.h
+++ b/config.h
@@ -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