[PATCH v3 0/3] Add IPv6 Network Discovery
emohandesi at linux.microsoft.com
emohandesi at linux.microsoft.com
Wed Apr 12 18:10:02 CEST 2023
From: Ehsan Mohandesi <emohandesi at linux.microsoft.com>
This series adds IPv6 network discovery to U-Boot. When an IPv6 command is
run in U-Boot, it sends a router solicitation (RS) message to the network.
The router on the network responds with a router advertisement (RA)
message. Then U-Boot processes the RA message and sets the gatewayip6 and
net_prefix_length environment variables.
It is based on RFC 4861, but not everything in the RFC is supported here.
https://www.rfc-editor.org/rfc/rfc4861
Changes in v3:
- Removed the extra revert commit that was mistakenly added in v2.
Changes in v2:
- Improved IPv6 network discovery code.
- Added IPv6 network discovery feature test (Python test).
- Added unit tests (C code).
Ehsan Mohandesi (3):
net: ipv6: Add support for default gateway discovery.
test/py: IPv6 network discovery test
test: eth: IPv6 network discovery unit test
cmd/Kconfig | 6 +
configs/sandbox64_defconfig | 2 +
configs/sandbox_defconfig | 2 +
configs/sandbox_flattree_defconfig | 2 +
include/ndisc.h | 35 ++++++
include/net.h | 3 +-
include/net6.h | 40 ++++++
net/ndisc.c | 243 +++++++++++++++++++++++++++++++++++--
net/net.c | 23 +++-
net/net6.c | 1 +
test/dm/eth.c | 88 ++++++++++++++
test/py/tests/test_net.py | 31 ++++-
12 files changed, 463 insertions(+), 13 deletions(-)
--
1.8.3.1
More information about the U-Boot
mailing list