diff options
author | lm66018 <none@none> | 2007-08-09 10:17:54 -0700 |
---|---|---|
committer | lm66018 <none@none> | 2007-08-09 10:17:54 -0700 |
commit | 205eeb1ae627fcf67b5705c443a2b56a8263406b (patch) | |
tree | a48419e65813a80e10b62d89c9edce47b4293b86 /usr/src/cmd/vntsd | |
parent | dbbe7b71d90bb93ec45e5c8d8585f98cc2848a30 (diff) | |
download | illumos-gate-205eeb1ae627fcf67b5705c443a2b56a8263406b.tar.gz |
6534456 vntsd does not recognize a listen_addr of 127.0.0.1
6536262 vds occasionally sends out-of-order responses
6541689 vsw_process_data_dring_pkt doesn't check the return value from allocb
6544946 Adding non existant disk device to single cpu domain causes hang
Diffstat (limited to 'usr/src/cmd/vntsd')
-rw-r--r-- | usr/src/cmd/vntsd/vntsd.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/usr/src/cmd/vntsd/vntsd.c b/usr/src/cmd/vntsd/vntsd.c index 18b8d758f9..4091dfe015 100644 --- a/usr/src/cmd/vntsd/vntsd.c +++ b/usr/src/cmd/vntsd/vntsd.c @@ -75,6 +75,9 @@ int vntsddbg = 0x8; #define VNTSD_INVALID_LISTEN_ADDR ((in_addr_t)-1) +#define LOCALHOST_IPv4 "127.0.0.1" +#define LOCALHOST_IPv6 "::1" + static vntsd_t *vntsdp; @@ -258,9 +261,8 @@ vntsd_exit(void) static void vntsd_help(void) { - (void) fprintf(stderr, gettext("Usage: vntsd -i <VCC device instance> " - "[-p <listen address>] [-t <timeout in minutes>]\n")); + "[-p <listen address>] [-t <timeout in minutes>]\n")); } /* @@ -389,7 +391,9 @@ main(int argc, char ** argv) exit(1); } - if (listen_addr == NULL || strcmp(listen_addr, "localhost") == 0) { + if (listen_addr == NULL || strcmp(listen_addr, "localhost") == 0 || + strcmp(listen_addr, LOCALHOST_IPv4) == 0 || + strcmp(listen_addr, LOCALHOST_IPv6) == 0) { /* by default listen on loopback interface */ vntsdp->ip_addr.s_addr = htonl(INADDR_LOOPBACK); } else if (strcmp(listen_addr, "any") == 0) { |