From: Jean-Pierre Tosoni Date: Tue, 3 Nov 2015 11:41:48 +0100 Subject: [U-Boot] [RFC PATCH 6/8] net: TFTP over IPv6 In-Reply-To: References: <1444635794-16285-1-git-send-email-judge.packham@gmail.com> <1444635794-16285-7-git-send-email-judge.packham@gmail.com> Message-ID: <001001d11624$3e3d3f10$bab7bd30$@acksys.fr> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi all, > -----Message d'origine----- > De : Joe Hershberger [mailto:joe.hershberger at gmail.com] > Envoy? : lundi 2 novembre 2015 21:44 > ? : Chris Packham > Cc : u-boot; Joe Hershberger; jp.tosoni at acksys.fr; Hanna Hawa; Angga > Objet : Re: [U-Boot] [RFC PATCH 6/8] net: TFTP over IPv6 > (...) > > --- > > One problem with the [hostIpAddr:]fileName syntax is that IPv6 > > addresses contains colons. So tftp_start() would be confused by > > 'tftpboot6 $loadaddr 2001:db8::1:zImage'. It is probably possible to > > change the parsing to separate the host from the filename by parsing > > from the end (i.e. use strrchr() instead of strchr()) but then there > > are error cases that may not be handled correctly (e.g. omitting the > filename). > > I think we should just change the filename separator for tftp6. How about > ','? > How about a '/' to make it look like an URL ? More intuitive maybe. (...)