firewall: Add firewall file
authorDaniel Wagner <daniel.wagner@bmw-carit.de>
Tue, 19 Mar 2013 12:46:30 +0000 (13:46 +0100)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Mon, 25 Mar 2013 11:17:58 +0000 (13:17 +0200)
Makefile.am
src/connman.h
src/firewall.c [new file with mode: 0644]
src/main.c

index d54c693..4c99ff5 100644 (file)
@@ -97,7 +97,7 @@ src_connmand_SOURCES = $(gdbus_sources) $(gdhcp_sources) $(gweb_sources) \
                        src/session.c src/tethering.c src/wpad.c src/wispr.c \
                        src/stats.c src/iptables.c src/dnsproxy.c src/6to4.c \
                        src/ippool.c src/bridge.c src/nat.c src/ipaddress.c \
-                       src/inotify.c
+                       src/inotify.c src/firewall.c
 
 src_connmand_LDADD = $(builtin_libadd) @GLIB_LIBS@ @DBUS_LIBS@ \
                                @XTABLES_LIBS@ @GNUTLS_LIBS@ -lresolv -ldl -lrt
index 6b81477..e09c22e 100644 (file)
@@ -879,3 +879,7 @@ void __connman_nat_cleanup(void);
 int __connman_nat_enable(const char *name, const char *address,
                                unsigned char prefixlen);
 void __connman_nat_disable(const char *name);
+
+
+int __connman_firewall_init(void);
+void __connman_firewall_cleanup(void);
diff --git a/src/firewall.c b/src/firewall.c
new file mode 100644 (file)
index 0000000..e8b7e20
--- /dev/null
@@ -0,0 +1,38 @@
+/*
+ *
+ *  Connection Manager
+ *
+ *  Copyright (C) 2013  BMW Car IT GmbH.
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License version 2 as
+ *  published by the Free Software Foundation.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+ *
+ */
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#include "connman.h"
+
+int __connman_firewall_init(void)
+{
+       DBG("");
+
+       return 0;
+}
+
+void __connman_firewall_cleanup(void)
+{
+       DBG("");
+}
index e21d056..0f47943 100644 (file)
@@ -633,6 +633,7 @@ int main(int argc, char *argv[])
 
        __connman_ippool_init();
        __connman_iptables_init();
+       __connman_firewall_init();
        __connman_nat_init();
        __connman_tethering_init();
        __connman_counter_init();
@@ -693,6 +694,7 @@ int main(int argc, char *argv[])
        __connman_counter_cleanup();
        __connman_tethering_cleanup();
        __connman_nat_cleanup();
+       __connman_firewall_cleanup();
        __connman_iptables_cleanup();
        __connman_ippool_cleanup();
        __connman_device_cleanup();