diff options
author | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2012-02-01 18:51:46 +0100 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-02-13 11:33:17 +0100 |
commit | 37cbd6d1e4f65892bab87194479a3cf86fa181aa (patch) | |
tree | b94b0033f0055021a7e66b3e3b65972932b91d95 /src/connman.h | |
parent | d9a94c8478156c97f9cca85d824964994a9b54bf (diff) | |
download | connman-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/connman.h')
-rw-r--r-- | src/connman.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/connman.h b/src/connman.h index 0a16fb41..60bb9c1c 100644 --- a/src/connman.h +++ b/src/connman.h @@ -749,3 +749,10 @@ int __connman_bridge_remove(const char *name); int __connman_bridge_enable(const char *name, const char *broadcast, const char *gateway); int __connman_bridge_disable(const char *name); + +int __connman_nat_init(void); +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); |