summaryrefslogtreecommitdiffstats
path: root/ip6tables-standalone.c
diff options
context:
space:
mode:
author/C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net </C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net>2007-10-23 14:22:34 +0000
committer/C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net </C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net>2007-10-23 14:22:34 +0000
commitbbe3deba249137f627b7d9686f5d51f571d5b639 (patch)
treef1fda910401a2d27f3157b6c1c2a34e47c9e2d12 /ip6tables-standalone.c
parenta338e3a4db1b1aaa3af441ba5ea3640b163cedb1 (diff)
[PATCH] let DO_MULTI=1 work for ip6tables* binaries
When defining DO_MULTI=1 in Makefile, only iptables is built as a single multipurpose binary. This patch makes ip6tables also be built in the same manner. Hann-huei Chiou <koala@ascenvision.com>
Diffstat (limited to 'ip6tables-standalone.c')
-rw-r--r--ip6tables-standalone.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ip6tables-standalone.c b/ip6tables-standalone.c
index 36dde33..b7dfd17 100644
--- a/ip6tables-standalone.c
+++ b/ip6tables-standalone.c
@@ -36,8 +36,13 @@
#include <errno.h>
#include <ip6tables.h>
+#ifdef IPTABLES_MULTI
+int
+ip6tables_main(int argc, char *argv[])
+#else
int
main(int argc, char *argv[])
+#endif
{
int ret;
char *table = "filter";