aboutsummaryrefslogtreecommitdiff
path: root/net/bootp.c
diff options
context:
space:
mode:
authorAndre Kalb <svc.sw.rte.linux@sma.de>2022-01-28 09:40:32 +0100
committerTom Rini <trini@konsulko.com>2022-08-08 10:49:51 -0400
commit5e6e41b3bab32f2ee258a76fda68b703e8f10cc3 (patch)
treeec3af50469b235a6f88e330c4b7e4cf67df5cc4f /net/bootp.c
parent56edbb5eafc53cd7b34cd231ec11c7e5eb576c9f (diff)
downloadu-boot-5e6e41b3bab32f2ee258a76fda68b703e8f10cc3.zip
u-boot-5e6e41b3bab32f2ee258a76fda68b703e8f10cc3.tar.gz
u-boot-5e6e41b3bab32f2ee258a76fda68b703e8f10cc3.tar.bz2
net: bootp: Make root path (option 17) length configurable
to adjust the root path length. Eg to 256 from Linux Kernel Signed-off-by: Andre Kalb <andre.kalb@sma.de> Reviewed-by: Ramon Fried <rfried.dev@gmail.com> [trini: Guard extern so that !CONFIG_NET platforms will build] Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'net/bootp.c')
-rw-r--r--net/bootp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bootp.c b/net/bootp.c
index a544bfc..b260d5d 100644
--- a/net/bootp.c
+++ b/net/bootp.c
@@ -59,7 +59,7 @@ ulong bootp_start;
ulong bootp_timeout;
char net_nis_domain[32] = {0,}; /* Our NIS domain */
char net_hostname[32] = {0,}; /* Our hostname */
-char net_root_path[64] = {0,}; /* Our bootpath */
+char net_root_path[CONFIG_BOOTP_MAX_ROOT_PATH_LEN] = {0,}; /* Our bootpath */
static ulong time_taken_max;