network/sendfile01: cleanup test, apply new net library

This test require remote host IP address. Don't get it from RHOST,
get the one from network.sh. It is done because RHOST may be set as
management link and we don't want test traffic on it.

Also, test used 'rsh' without input redirection to /dev/null. It could block
the test, see bug section in rsh man page.

Signed-off-by: Alexey Kodanev <alexey.kodanev@oracle.com>
Reviewed-by: Cyril Hrubis <chrubis@suse.cz>
4 files changed