[PATCH 3/5] net: tftp: add IPv6 support for tftpboot

Vyacheslav Mitrofanov V v.v.mitrofanov at yadro.com
Fri Sep 2 16:58:35 CEST 2022


On Fri, 2022-09-02 at 17:48 +0300, Ramon Fried wrote:
> «Внимание! Данное письмо от внешнего адресата!»
> 
> On Mon, Aug 22, 2022 at 9:36 AM Vyacheslav Mitrofanov V
> <v.v.mitrofanov at yadro.com> wrote:
> > On Fri, 2022-08-19 at 21:01 +0300, Ramon Fried wrote:
> > > On Fri, Aug 19, 2022 at 2:30 PM Vyacheslav Mitrofanov V
> > > <v.v.mitrofanov at yadro.com> wrote:
> > > > On Fri, 2022-08-19 at 14:00 +0300, Ramon Fried wrote:
> > > > > On Fri, Aug 19, 2022 at 11:10 AM Viacheslav Mitrofanov
> > > > > <v.v.mitrofanov at yadro.com> wrote:
> > > > > > The command tftpboot uses IPv4 by default, to use IPv6
> > > > > > instead
> > > > > > add
> > > > > > -ipv6
> > > > > > as the last argument. All other tftpboot features and
> > > > > > parameters
> > > > > > are left
> > > > > > the same.
> > > > > > 
> > > > > In my opinion, we should be able to detect if a user has
> > > > > provided
> > > > > or
> > > > > set an IPv6 server IP address and only use IPv6 then.
> > > > I tried to save tftboot semantics. I mean if we set -ipv6
> > > > option
> > > > the
> > > > command will check server address in args if it is empty check
> > > > environmental variable and if it is not set then terminate it.
> > > > It
> > > > works
> > > > the same way as it works now. If I didn't get you, please,
> > > > clarify
> > > > it a
> > > > little bit more.
> > > > Thanks!
> > > What I meant is that if you can distinguish IPv6 address from
> > > just
> > > parsing the address itself.
> > > Perhaps the -ipv6 is redundant.
> > It is not a problem to add a parser, I'll do that.
> > I thought that suffix can be useful if we use short command
> > notation as
> > an example just 'tftpboot'. In that case it uses IPv4 but if add
> > suffix
> > it will use IPv6. Or I can remove suffix at all and use an
> > environment
> > variable for example 'use_ip6' to determine protocol.
> > What do you think?!
> > Thanks!
> I think we can stay with the ipv6. I looked at some Linux command
> line
> utilities and they also require a parameter for Ipv6.
> Reviewed-by: Ramon Fried <rfried.dev at gmail.com>

Hello Ramon!

I have already add the possibility to check if there is an IPv6
address. If so -ipv6 suffix is not obligatory. All this changes are
made in a new patchset that I sent 3 days ago. Simon Glass has already
reviewed some. 

Thanks!


More information about the U-Boot mailing list