Skip to content

RFC Initial IPv6 support

Chris Packham u-boot 7 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 RFC Latest7 patches 0 repliesNew
  2. v2 RFC posting 5/50 of 5 patches 0 repliesSuperseded
  3. v2 RFC posting 4/50 of 5 patches 0 repliesSuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v2 RFC posting 3/50 of 5 patches0 repliesSuperseded
v2 RFC posting 2/50 of 5 patches0 repliesSuperseded
v2 RFC posting 1/55 patches0 repliesSuperseded
v1 RFC0 of 2 patches0 repliesSuperseded

Changes in v3 from the cover letter

-Fix a what should have been a glaringly obvious omission that cause
all addresses to be interpreted as 0. Made even stricter so that v6 addresses that start with numbers aren't accepted.
-return -1 with the input string is null.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7Initial net6.hinclude/net6.h+43 -00 replies
2/7lib/vsprintf.c: add IPv6 compressed format %pI6cinclude/net6.h lib/vsprintf.c+136 -200 replies
3/7lib/net_utils.c: make string_to_ip stricterlib/net_utils.c+10 -50 replies
4/7lib/net_utils.c: add string_to_ip6include/net6.h lib/net_utils.c+117 -00 replies
5/7common.h: add getenv_IP6addrinclude/common.h lib/net_utils.c+6 -10 replies
6/7tsec: enable promiscuous mode for IPv6drivers/net/tsec.c+4 -00 replies
7/7net: ipv6 supportcommon/cmd_net.c include/net.h include/net6.h +6 more+1051 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [U-Boot] [RFC PATCH v3 0/7] Initial IPv6 support

From: Chris Packham <[email protected]>

Now we have something functional. With this you can do something like 'setenv ipaddr6 3ffe::2' and 'ping6 3ffe::1' should work.

I seem to have a problem that when you send a ping6 for a non-existent address that ends up stuck and the next non-ipv6 net operation tries to resolve it. I suspect this is because the pending neighbor discovery information isn't cleaned up properly.

I'm sending this out now because I'll be away at a conference next week so probably won't have any time to work on this but I did want to say "hey ping6 works". When I get back I'll start tackling tftp over ipv6.

Changes in v3:
-Fix a what should have been a glaringly obvious omission that cause
all addresses to be interpreted as 0. Made even stricter so that v6 addresses that start with numbers aren't accepted.
-return -1 with the input string is null.

Changes in v2:
- use __be16/__be32
- add ipv6_addr_v4mapped and ipv6_addr_is_isatap inline functions Changes in v3
- Add reviewed-by from Kim Phillips to "Initial net6.h"
- Add support for printing mapped and ISATAP addresses

Chris Packham (7):
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
tsec: enable promiscuous mode for IPv6
net: ipv6 support

 common/cmd_net.c   |  27 +++++
 drivers/net/tsec.c |   4 +
 include/common.h   |   6 +
 include/net.h      |   5 +-
 include/net6.h     | 267 ++++++++++++++++++++++++++++++++++++++++
 lib/net_utils.c    | 128 +++++++++++++++++++-
 lib/vsprintf.c     | 143 +++++++++++++++++++---
 net/Makefile       |   6 +
 net/ndisc.c        | 276 ++++++++++++++++++++++++++++++++++++++++++
 net/ndisc.h        |  29 +++++
 net/net.c          |  38 ++++++
 net/net6.c         | 349 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 net/ping6.c        | 115 ++++++++++++++++++
 13 files changed, 1366 insertions(+), 27 deletions(-)
 create mode 100644 include/net6.h
 create mode 100644 net/ndisc.c
 create mode 100644 net/ndisc.h
 create mode 100644 net/net6.c
 create mode 100644 net/ping6.c
Signature · 1 line
1.7.12.rc2.16.g034161a