aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2018-02-12 18:03:09 +0100
committerHarald Welte <laforge@gnumonks.org>2018-02-14 00:43:22 +0000
commit5fdda13f896123f4d199d4aaba33e0df30dcb478 (patch)
tree1615d0ea29c917dfeaab5738a147e04fe1ae3ebc
parentdbeaa044f855ce90cf68b9ca3f6880b0d9110f36 (diff)
sgsnemu: listen param is a host, not an interface
This param is parsed by gethostbyname() and it's confusing to document it as an interface, because users will then attempt to pass "lo" to it, which fails. Change-Id: Id8ef0e12ddcaf8bfd199a44de0ba4280f05d4431
-rw-r--r--sgsnemu/cmdline.c4
-rw-r--r--sgsnemu/cmdline.ggo2
-rw-r--r--sgsnemu/cmdline.h6
3 files changed, 6 insertions, 6 deletions
diff --git a/sgsnemu/cmdline.c b/sgsnemu/cmdline.c
index 412e484..b062533 100644
--- a/sgsnemu/cmdline.c
+++ b/sgsnemu/cmdline.c
@@ -41,7 +41,7 @@ const char *gengetopt_args_info_help[] = {
" --pidfile=STRING Filename of process id file\n (default=`./sgsnemu.pid')",
" --statedir=STRING Directory of nonvolatile data (default=`./')",
" --dns=STRING DNS Server to use",
- " -l, --listen=STRING Local interface",
+ " -l, --listen=STRING Local host",
" -r, --remote=STRING Remote host",
" --contexts=INT Number of contexts (default=`1')",
" --timelimit=INT Exit after timelimit seconds (default=`0')",
@@ -1003,7 +1003,7 @@ cmdline_parser_internal(int argc, char **argv,
goto failure;
break;
- case 'l': /* Local interface. */
+ case 'l': /* Local host. */
if (update_arg((void *)&(args_info->listen_arg),
&(args_info->listen_orig),
diff --git a/sgsnemu/cmdline.ggo b/sgsnemu/cmdline.ggo
index dec19cd..0f415f5 100644
--- a/sgsnemu/cmdline.ggo
+++ b/sgsnemu/cmdline.ggo
@@ -26,7 +26,7 @@ option "pidfile" - "Filename of process id file" string default="./sgsn
option "statedir" - "Directory of nonvolatile data" string default="./" no
option "dns" - "DNS Server to use" string no
-option "listen" l "Local interface" string no
+option "listen" l "Local host" string no
option "remote" r "Remote host" string no
option "contexts" - "Number of contexts" int default="1" no
diff --git a/sgsnemu/cmdline.h b/sgsnemu/cmdline.h
index 31a2085..24f772b 100644
--- a/sgsnemu/cmdline.h
+++ b/sgsnemu/cmdline.h
@@ -69,11 +69,11 @@ extern "C" {
const char *dns_help;
/**< @brief DNS Server to use help description. */
char *listen_arg;
- /**< @brief Local interface. */
+ /**< @brief Local host. */
char *listen_orig;
- /**< @brief Local interface original value given at command line. */
+ /**< @brief Local host original value given at command line. */
const char *listen_help;
- /**< @brief Local interface help description. */
+ /**< @brief Local host help description. */
char *remote_arg;
/**< @brief Remote host. */
char *remote_orig;