I am working with the 20040804 release of LTP. I am setting RHOST to
the IP address of my LTP network test server. I do not have DNS
services available on my test subnet and I am not modifying '/etc/hosts'
on the test client to include an entry for the network test server.
'sendfile01' is failing on this setup because 'gethost' fails, and
IPADDR is left undefined.
Is this a legitimate setup, or is either DNS or an '/etc/hosts' entry
required for LTP network tests?
My workaround is to check that IPADDR is not null after the gethost
call, and if it is, set it to the value of RHOST (assuming that it is an
IP address). This works for me, but I'm not sure if it is generally
applicable. Note: the test will still fail if RHOST is not set to
either the network test server's hostname or IP address (as expected).
Attached is a patch showing the code I added.
Get latest updates about Open Source Projects, Conferences and News.