aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChenbo Feng <fengc@google.com>2018-03-08 19:18:14 +0900
committerChenbo Feng <fengc@google.com>2018-03-13 01:37:27 -0700
commit210d3211fe074a86459ca5cf5270de0e8c23b482 (patch)
tree0cc60ae57a354b8a3f920c6c4f50d4105dcab97d
parent350bb6f1ac9484c9e741be166d672ab7fe61e215 (diff)
downloadiptables-pie-dev.tar.gz
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.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