diff options
author | Tom Rini <trini@konsulko.com> | 2022-12-05 13:28:22 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-12-05 13:28:22 -0500 |
commit | 6616ddb0f09c4ef3e8a79b76b146dbbd9c8f8c3d (patch) | |
tree | 9df20918981d508e1c9f8b27533abce955073889 /include/env_callback.h | |
parent | a50622d78c5c6babd1853ae913f339df54fe532c (diff) | |
parent | a72926257c1dbc456d1cd02fc6bd5ef6147e143f (diff) |
Merge branch '2022-12-05-add-IPv6-support'
To quote the author:
This patch set adds basic IPv6 support to U-boot.
It is based on Chris's Packham patches
(https://lists.denx.de/pipermail/u-boot/2017-January/279366.html)
Chris's patches were taken as base. There were efforts to launch it on
HiFive SiFive Unmatched board but the board didn't work well. The code was
refactored, fixed some bugs as CRC for little-endian, some parts were implemented in
our own way, something was taken from Linux. Finally we did manual tests and the
board worked well.
Testing was done on HiFive SiFive Unmatched board (RISC-V)
Diffstat (limited to 'include/env_callback.h')
-rw-r--r-- | include/env_callback.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/env_callback.h b/include/env_callback.h index 1eae0efca2e..85e7fe25f8f 100644 --- a/include/env_callback.h +++ b/include/env_callback.h @@ -51,6 +51,15 @@ #define NET_CALLBACKS #endif +#ifdef CONFIG_IPV6 +#define NET6_CALLBACKS \ + "ip6addr:ip6addr," \ + "serverip6:serverip6," \ + "gatewayip6:gatewayip6," +#else +#define NET6_CALLBACKS +#endif + #ifdef CONFIG_BOOTSTD #define BOOTSTD_CALLBACK "bootmeths:bootmeths," #else @@ -65,6 +74,7 @@ ENV_DOT_ESCAPE ENV_FLAGS_VAR ":flags," \ "baudrate:baudrate," \ NET_CALLBACKS \ + NET6_CALLBACKS \ BOOTSTD_CALLBACK \ "loadaddr:loadaddr," \ SILENT_CALLBACK \ |