public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Chris Packham <judge.packham@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [RFC PATCH v2 0/5] Initial IPv6 support
Date: Sun, 20 Jan 2013 22:24:58 +1300	[thread overview]
Message-ID: <50FBB7EA.10601@gmail.com> (raw)
In-Reply-To: <20130118102301.368CA20060A@gemini.denx.de>

On 01/18/2013 11:23 PM, Wolfgang Denk wrote:
> Dear Chris,
> 
> In message <1358472932-32083-1-git-send-email-judge.packham@gmail.com> you wrote:
>>
>> This series so far covers the introduction of a IP6addr_t and
>> printing/parsing of addresses. I have a patch for testing these basic
>> things which I haven't included in this series yet. Is there a unittest
>> facility for u-boot I should be using?
> 
> We use the DUTS ([1], [2]) for all kind of test cases (but note that
> I don't claim it's easy to get started with it).
> 
> [1] http://www.denx.de/wiki/DUTS/DUTSDocs
> [2] http://git.denx.de/?p=duts.git
> 
>> A few open questions
>>
>> 1) Presumably the majority of the actual V6 code would be included by a
>> config option (CONFIG_IPV6). How far should I take that? Should the
>> vsprintf code be conditional?
> 
> Yes, please.
> 
>> 2) Our current out of tree code parallels net.c and net.h. Should I
>> continue this for the final version or integrate it into net.[ch].
> 
> This depends - if such integration can be done nicely, i. e. without
> too many new #ifdef's, then yes, please.
> 
>> 3) rxhand_f currently takes an IPaddr_t. I haven't looked at the usage
>> of this yet but to support V6 this may need to be a new union or a void
>> *.
> 
> What exactly is the question here?

The POSIX solution for this is to use sockaddr which encompasses both v4
and v6 addresses (as well as other socket types). Do we want to add a
wrapper type or just work with void *?

I also need to look at things that implement a rxhand_f just to see what
they do with the IPaddr_t.

> 
> Best regards,
> 
> Wolfgang Denk
> 

  reply	other threads:[~2013-01-20  9:24 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-18  1:35 [U-Boot] [RFC PATCH v2 0/5] Initial IPv6 support Chris Packham
2013-01-18  1:35 ` [U-Boot] [RFC PATCH v2 1/5] Initial net6.h Chris Packham
2013-01-18 21:15   ` Kim Phillips
2013-01-18  1:35 ` [U-Boot] [RFC PATCH v2 2/5] lib/vsprintf.c: add IPv6 compressed format %pI6c Chris Packham
2013-01-18  1:35 ` [U-Boot] [RFC PATCH v2 3/5] lib/net_utils.c: make string_to_ip stricter Chris Packham
2013-01-18  1:35 ` [U-Boot] [RFC PATCH v2 4/5] lib/net_utils.c: add string_to_ip6 Chris Packham
2013-01-18  1:35 ` [U-Boot] [RFC PATCH v2 5/5] common.h: add getenv_IP6addr Chris Packham
2013-01-18  8:20 ` [U-Boot] [RFC PATCH v2 0/5] Initial IPv6 support Albert ARIBAUD
2013-01-18  9:39   ` Chris Packham
2013-01-18 10:16     ` Sergey Lapin
2013-01-18 10:44     ` Wolfgang Denk
2013-01-18 18:41       ` Joe Hershberger
2013-01-20  9:47         ` Chris Packham
2013-01-20  9:44       ` Chris Packham
2013-01-20 21:00         ` Albert ARIBAUD
2013-01-20 21:25           ` Chris Packham
2013-01-21  0:51         ` Chris Packham
2013-01-21 12:37           ` Wolfgang Denk
2013-01-18 10:25   ` Wolfgang Denk
2013-01-18 10:23 ` Wolfgang Denk
2013-01-20  9:24   ` Chris Packham [this message]
2013-01-21 12:39     ` Wolfgang Denk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50FBB7EA.10601@gmail.com \
    --to=judge.packham@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox