summaryrefslogtreecommitdiffhomepage
path: root/test/syscalls/linux/BUILD
diff options
context:
space:
mode:
authorKevin Krakauer <krakauer@google.com>2019-07-29 13:18:58 -0700
committergVisor bot <gvisor-bot@google.com>2019-07-29 13:20:09 -0700
commit09be87bbee1e4338b488f22199d0f079ffec8d0e (patch)
treea653c4530420b3a4612fedcddab74df2008d311e /test/syscalls/linux/BUILD
parent4183b9021ac1d055085dc1fd2f525689fc055d78 (diff)
Add iptables types for syscalls tests.
Unfortunately, Linux's ip_tables.h header doesn't compile in C++ because it implicitly converts from void* to struct xt_entry_target*. C allows this, but C++ does not. So we have to re-implement many types ourselves. Relevant code here: https://github.com/torvalds/linux/blob/master/include/uapi/linux/netfilter_ipv4/ip_tables.h#L222 PiperOrigin-RevId: 260565570
Diffstat (limited to 'test/syscalls/linux/BUILD')
-rw-r--r--test/syscalls/linux/BUILD8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/syscalls/linux/BUILD b/test/syscalls/linux/BUILD
index c5a368463..40fc73812 100644
--- a/test/syscalls/linux/BUILD
+++ b/test/syscalls/linux/BUILD
@@ -904,6 +904,14 @@ cc_binary(
],
)
+cc_library(
+ name = "iptables_types",
+ testonly = 1,
+ hdrs = [
+ "iptables.h",
+ ],
+)
+
cc_binary(
name = "itimer_test",
testonly = 1,