* wire-test/wire-test.c, hlfsd/hlfsd.c (main): pass NULL as second
authorErez Zadok <ezk@cs.sunysb.edu>
Thu, 22 Jan 2004 05:01:06 +0000 (05:01 +0000)
committerErez Zadok <ezk@cs.sunysb.edu>
Thu, 22 Jan 2004 05:01:06 +0000 (05:01 +0000)
commit6b86ed04298a3ed38b0ee97efea7eb80e3738621
tree25d8e7008c1504a7fc2e51afaa5f52bddfb6d219
parentaeb2567f0c99594dd0fc5d032cafd16afb082858
* wire-test/wire-test.c, hlfsd/hlfsd.c (main): pass NULL as second
parameter to amu_get_myaddress().

* conf/transp/transp_tli.c (amu_get_myaddress): resolve value of
localhost_address amd.conf parameter, if defined (else default to
HOST_SELF_CONNECT).
Removed htonl() around socket address copying (I think it was
wrong) since plog("My IP address is...") in amd.c was printing
addresses wrong on Solaris x86..

* conf/transp/transp_sockets.c (amu_get_myaddress): comment out
old DEBUG code that warns if 127.0.0.1 isn't the same as what
get_myaddress() reports.  Add code to resolve value of
localhost_address amd.conf parameter, if defined (else default to
127.0.0.1).

* amd/conf.c (gopt_localhost_address): new function to parse
amd.conf parameter localhost_address.

* amd/amd.h: global field to store amd.conf localhost_address
parameter.

* amd/amd.c (main): call amu_get_myaddress with global option,
which could have been set in amd.conf.

* NEWS, doc/am-utils.texi, scripts/amd.conf-sample,
scripts/amd.conf.5: document new option localhost_address.
13 files changed:
ChangeLog
NEWS
amd/amd.c
amd/amd.h
amd/conf.c
conf/transp/transp_sockets.c
conf/transp/transp_tli.c
doc/am-utils.texi
hlfsd/hlfsd.c
include/am_utils.h
scripts/amd.conf-sample
scripts/amd.conf.5
wire-test/wire-test.c