summaryrefslogtreecommitdiff
path: root/src/nat
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-01-07 13:05:27 +0100
committerChristian Grothoff <christian@grothoff.org>2017-01-07 13:05:27 +0100
commitfe7e93cbcc20631e611c1a5505a03d00e73e0cc2 (patch)
tree661a57b75982f22041bd15d300a439bcce097a37 /src/nat
parent76b387ae68024934ccd92daa34659ada17dc3955 (diff)
downloadgnunet-fe7e93cbcc20631e611c1a5505a03d00e73e0cc2.tar.gz
gnunet-fe7e93cbcc20631e611c1a5505a03d00e73e0cc2.zip
fixing uninit sin_addr; now successfully tested external hole punching support in new NAT code; documenting options to be used in the future
Diffstat (limited to 'src/nat')
-rw-r--r--src/nat/gnunet-service-nat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nat/gnunet-service-nat.c b/src/nat/gnunet-service-nat.c
index a8a824b48..b3e81127b 100644
--- a/src/nat/gnunet-service-nat.c
+++ b/src/nat/gnunet-service-nat.c
@@ -28,7 +28,6 @@
28 * knowledge about the local network topology. 28 * knowledge about the local network topology.
29 * 29 *
30 * TODO: 30 * TODO:
31 * - test manual hole punching support
32 * - adapt existing transports to use new NAT logic 31 * - adapt existing transports to use new NAT logic
33 * - abandon legacy NAT code 32 * - abandon legacy NAT code
34 * 33 *
@@ -863,6 +862,7 @@ notify_client_external_ipv4_change (void *cls,
863 s4 = (struct sockaddr_in *) &lal.addr; 862 s4 = (struct sockaddr_in *) &lal.addr;
864 s4->sin_family = AF_INET; 863 s4->sin_family = AF_INET;
865 s4->sin_port = htons (ch->ext_dns_port); 864 s4->sin_port = htons (ch->ext_dns_port);
865 s4->sin_addr = *v4;
866 lal.af = AF_INET; 866 lal.af = AF_INET;
867 lal.ac = GNUNET_NAT_AC_GLOBAL | GNUNET_NAT_AC_MANUAL; 867 lal.ac = GNUNET_NAT_AC_GLOBAL | GNUNET_NAT_AC_MANUAL;
868 check_notify_client (&lal, 868 check_notify_client (&lal,