>>>>> On Wed, 9 Mar 1994 08:23:30 +0800 (SST), Ng Pheng Siong <ngps @
nova .
np .
ac .
sg> said:
> As for ncftp telling the other host that your ip number is 0.0.0.0,
> that is related to getsockname() being broken. On all other ip
> implementations, getsockname() returns (among other things) the ip
> address of the other end of the socket connection. Under Wollongong,
> it returns the ip address of the local end of the socket, which in most
> cases is localhost, i.e. 0.0.0.0. The solution is to use something
> like gethostbyname("hostname") and use that data instead.
Ng> Ditto for ftp-gw. I am currently working on it.
Ng> I haven't tried any of the other gw's.
Actually t_getsockname works correctly.
--
Tony Lill, Tony .
Lill @
AJLC .
Waterloo .
ON .
CA
President, A. J. Lill Consultants (519) 241 2461
539 Grand Valley Dr., Cambridge, Ont. fax/data (519) 650 3571
"Welcome to All Things UNIX, where if it's not UNIX, it's CRAP!"
References:
|
|