diff options
author | Christian Fuchs <christian.fuchs@cfuchs.net> | 2013-03-21 16:44:05 +0000 |
---|---|---|
committer | Christian Fuchs <christian.fuchs@cfuchs.net> | 2013-03-21 16:44:05 +0000 |
commit | 338678fcc6fccaf292d68413b6fe5ea33d83c49a (patch) | |
tree | 081f0c1cae55ef71abb09a465d7cfc13035822ae /src/exit/gnunet-helper-exit.c | |
parent | f68053300aed234517d51729fa2f84be4f2cd2f3 (diff) | |
download | gnunet-338678fcc6fccaf292d68413b6fe5ea33d83c49a.tar.gz gnunet-338678fcc6fccaf292d68413b6fe5ea33d83c49a.zip |
* replaced no-nat delimiter which was % (reserved char on windows) with - for exit-helper-windows and exit-helper.
* added ipv4 NAPT and removal functionality to exit-helper-windows
* moved a few variables
* next todo: ipv6 forwarding rules for netsh
Diffstat (limited to 'src/exit/gnunet-helper-exit.c')
-rw-r--r-- | src/exit/gnunet-helper-exit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/exit/gnunet-helper-exit.c b/src/exit/gnunet-helper-exit.c index 882778b3f..149241d9d 100644 --- a/src/exit/gnunet-helper-exit.c +++ b/src/exit/gnunet-helper-exit.c | |||
@@ -638,7 +638,7 @@ PROCESS_BUFFER: | |||
638 | * @param argc must be 6 | 638 | * @param argc must be 6 |
639 | * @param argv 0: binary name ("gnunet-helper-exit") | 639 | * @param argv 0: binary name ("gnunet-helper-exit") |
640 | * 1: tunnel interface name ("gnunet-exit") | 640 | * 1: tunnel interface name ("gnunet-exit") |
641 | * 2: IPv4 "physical" interface name ("eth0"), or "%" to not do IPv4 NAT | 641 | * 2: IPv4 "physical" interface name ("eth0"), or "-" to not do IPv4 NAT |
642 | * 3: IPv6 address ("::1"), or "-" to skip IPv6 | 642 | * 3: IPv6 address ("::1"), or "-" to skip IPv6 |
643 | * 4: IPv6 netmask length in bits ("64") [ignored if #4 is "-"] | 643 | * 4: IPv6 netmask length in bits ("64") [ignored if #4 is "-"] |
644 | * 5: IPv4 address ("1.2.3.4"), or "-" to skip IPv4 | 644 | * 5: IPv4 address ("1.2.3.4"), or "-" to skip IPv4 |
@@ -747,7 +747,7 @@ main (int argc, char **argv) | |||
747 | "Failed to enable IPv4 forwarding. Will continue anyway.\n"); | 747 | "Failed to enable IPv4 forwarding. Will continue anyway.\n"); |
748 | } | 748 | } |
749 | } | 749 | } |
750 | if (0 != strcmp (argv[2], "%")) | 750 | if (0 != strcmp (argv[2], "-")) |
751 | { | 751 | { |
752 | char *const iptables_args[] = | 752 | char *const iptables_args[] = |
753 | { | 753 | { |