disambiguate -L option to gnunet-nat
authorChristian Grothoff <christian@grothoff.org>
Sun, 18 Dec 2016 07:18:16 +0000 (08:18 +0100)
committerChristian Grothoff <christian@grothoff.org>
Sun, 18 Dec 2016 07:18:16 +0000 (08:18 +0100)
doc/man/gnunet-nat.1
src/nat/gnunet-nat.c
src/nat/gnunet-service-nat.c

index 9cc8b123760f5f7eb297a1a942ae30846f327d45..14b8e1509c365859e1a9c6245575d7a959899301 100644 (file)
@@ -38,10 +38,6 @@ Assuming we are listening at ADDRESS for connection reversal requests.
 .IP "\-r ADDRESS,  \-\-remote=ADDRESS"
 Ask the peer at ADDRESS for connection reversal, using the local address for the target address of the reversal.
 
-.B
-.IP "\-L,  \-\-listen"
-Listen for connection reversal requests.  
-
 .B
 .IP "\-p PORT,  \-\-port=PORT"
 Use PORT as our external port for advertising for incoming requests.
@@ -62,6 +58,11 @@ Use UDP.
 .IP "\-w,  \-\-write"
 Write configuration to configuration file, useful in combination with autoconfiguration (\-a).
 
+.B
+.IP "\-W,  \-\-watch"
+Watch for connection reversal requests.  
+
+
 .SH BUGS
 Report bugs by using Mantis <https://gnunet.org/bugs/> or by sending electronic mail to <gnunet\-developers@gnu.org>
 
index f3e26ffb1b63517f0fb06e0a09fef30c19ef49cb..d04a9337a7cc4f2f34c176be2a6cd12877b2bd33 100644 (file)
@@ -693,9 +693,6 @@ main (int argc,
     {'r', "remote", "ADDRESS",
      gettext_noop ("which remote IP and port should be asked for connection reversal"),
      GNUNET_YES, &GNUNET_GETOPT_set_string, &remote_addr },
-    {'L', "listen", NULL,
-     gettext_noop ("listen for connection reversal requests"),
-     GNUNET_NO, &GNUNET_GETOPT_set_one, &listen_reversal },
     {'p', "port", NULL,
      gettext_noop ("port to use to advertise"),
      GNUNET_YES, &GNUNET_GETOPT_set_uint, &adv_port },
@@ -711,6 +708,9 @@ main (int argc,
     {'w', "write", NULL,
      gettext_noop ("write configuration file (for autoconfiguration)"),
      GNUNET_NO, &GNUNET_GETOPT_set_one, &write_cfg },
+    {'W', "watch", NULL,
+     gettext_noop ("watch for connection reversal requests"),
+     GNUNET_NO, &GNUNET_GETOPT_set_one, &listen_reversal },
    GNUNET_GETOPT_OPTION_END
   };
 
index af401740226ca9069575cffa971c8d6bf70b755b..bf3867ff2fe50525e7e3557a17ee7ac4afb15ed0 100644 (file)
@@ -29,7 +29,8 @@
  *
  * TODO:
  * - TEST UPnPC/PMP-based NAT traversal
- * - implement STUN processing to classify NAT
+ * - implement STUN processing to classify NAT;
+ *   basically, open port & try different methods.
  * - implement "more" autoconfig
  * - implement NEW logic for external IP detection
  */