summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorDaniel Wagner <daniel.wagner@bmw-carit.de>2012-02-01 18:51:46 +0100
committerSamuel Ortiz <sameo@linux.intel.com>2012-02-13 11:33:17 +0100
commit37cbd6d1e4f65892bab87194479a3cf86fa181aa (patch)
treeb94b0033f0055021a7e66b3e3b65972932b91d95 /src/main.c
parentd9a94c8478156c97f9cca85d824964994a9b54bf (diff)
downloadconnman-37cbd6d1e4f65892bab87194479a3cf86fa181aa.tar.gz
connman-37cbd6d1e4f65892bab87194479a3cf86fa181aa.tar.bz2
connman-37cbd6d1e4f65892bab87194479a3cf86fa181aa.zip
nat: Move nat code into a seperate file
Instead of natting all traffic, nat.c will restrict the masquerading on given network/mask. The nat handling code will be reused by session.c
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 28337af4..ded3bb1b 100644
--- a/src/main.c
+++ b/src/main.c
@@ -339,6 +339,7 @@ int main(int argc, char *argv[])
__connman_agent_init();
__connman_ippool_init();
__connman_iptables_init();
+ __connman_nat_init();
__connman_tethering_init();
__connman_counter_init();
__connman_manager_init();
@@ -397,6 +398,7 @@ int main(int argc, char *argv[])
__connman_counter_cleanup();
__connman_agent_cleanup();
__connman_tethering_cleanup();
+ __connman_nat_cleanup();
__connman_iptables_cleanup();
__connman_ippool_cleanup();
__connman_device_cleanup();