[U-Boot] [RFC PATCH v2 0/5] Initial IPv6 support

Chris Packham judge.packham at gmail.com
Fri Jan 18 02:35:27 CET 2013


From: Chris Packham <chris.packham at alliedtelesis.co.nz>

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?

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?

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].

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
*.

Changes in v2:
 -use __be16/__be32
 -add ipv6_addr_v4mapped and ipv6_addr_is_isatap inline functions
 -Add support for printing mapped and ISATAP addresses

Chris Packham (5):
  Initial net6.h
  lib/vsprintf.c: add IPv6 compressed format %pI6c
  lib/net_utils.c: make string_to_ip stricter
  lib/net_utils.c: add string_to_ip6
  common.h: add getenv_IP6addr

 include/common.h |   6 +++
 include/net6.h   |  59 +++++++++++++++++++++++
 lib/net_utils.c  | 117 ++++++++++++++++++++++++++++++++++++++++++++-
 lib/vsprintf.c   | 143 +++++++++++++++++++++++++++++++++++++++++++++++--------
 4 files changed, 304 insertions(+), 21 deletions(-)
 create mode 100644 include/net6.h

-- 
1.7.12.rc2.16.g034161a



More information about the U-Boot mailing list