Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Jul 2000 16:13:19 +0900
From:      Hajimu UMEMOTO <ume@bisd.hitachi.co.jp>
To:        des@flood.ping.uio.no
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/lib/libfetch ftp.c
Message-ID:  <200007100713.e6A7DKF39317@plum.ssr.bisd.hitachi.co.jp>
In-Reply-To: <xzpsnti325b.fsf@flood.ping.uio.no>
References:  <200007080927.CAA28425@freefall.freebsd.org> <20000710.004713.71082196.ume@mahoroba.org> <xzpsnti325b.fsf@flood.ping.uio.no>

next in thread | previous in thread | raw e-mail | index | archive | help
>>>>> On 10 Jul 2000 08:55:28 +0200
>>>>> des@flood.ping.uio.no (Dag-Erling Smorgrav) said:

des> Hajimu UMEMOTO <ume@mahoroba.org> writes:
> >>>>> On Sat, 8 Jul 2000 02:27:48 -0700 (PDT)
> >>>>> Dag-Erling Smorgrav <des@FreeBSD.org> said:
> des>   Modified files:
> des>     lib/libfetch         ftp.c 
> des>   Log:
> des>   Don't assume the remote address in a 227 reply is enclosed in parentheses.
> This breaks IPv6.  Please backout it.

des> Sorry, but no. Instead, tell me why it breaks IPv6 and I'll try to fix
des> it (or even better, send me patches).

Why?  Is there any such servers that don't enclose remote address with
parentheses?
Because, RFC2428 Page 5 says as follows:

    The text returned in response to the EPSV command MUST be:

        <text indicating server is entering extended passive mode> \
            (<d><d><d><tcp-port><d>)

and, <d> is described in Page 2:

    Following the space, a delimiter character (<d>) MUST be
    specified.  The delimiter character MUST be one of the ASCII
    characters in range 33-126 inclusive.  The character "|" (ASCII 124)
    is recommended unless it coincides with a character needed to encode
    the network address.

So, we cannot assume digit to distinguish the address.  Furthermore,
IPv6 address is NOT digit but hex.
However, it is for 229.  So, we can separete 229 from 226.  But, is it
nessesary?

--
Hajimu UMEMOTO @ Business Solution System Development Div., Hitachi Ltd.
E-Mail: ume@bisd.hitachi.co.jp ume@mahoroba.org  ume@FreeBSD.org
URL: http://www.imasy.org/~ume/


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200007100713.e6A7DKF39317>