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
This commit is contained in:
parent
dbeaa044f8
commit
5fdda13f89
|
@ -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),
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue