]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
net: Increase the size of the net_boot_file_name buffer
authorJacob Stiffler <j-stiffler@ti.com>
Wed, 30 Sep 2015 14:12:05 +0000 (10:12 -0400)
committerJoe Hershberger <joe.hershberger@ni.com>
Thu, 29 Oct 2015 19:05:47 +0000 (14:05 -0500)
The net_boot_file_name buffer is used as storage for the bootfilename
command line argument to network boot commands such as tftp and nfs.

Increase the size of this buffer to 1024 bytes as the current size of
128 bytes is restrictive for arbitrary paths on the server.

Signed-off-by: Jacob Stiffler <j-stiffler@ti.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
include/net.h
net/net.c

index 1aabd7438b62e09e6889e4ff6594e6fbb0a46f05..ebed29ad577e898aecfefcfad784510f7ff6ea28 100644 (file)
@@ -516,7 +516,7 @@ enum proto_t {
        TFTPSRV, TFTPPUT, LINKLOCAL
 };
 
-extern char    net_boot_file_name[128];/* Boot File name */
+extern char    net_boot_file_name[1024];/* Boot File name */
 /* The actual transferred size of the bootfile (in bytes) */
 extern u32     net_boot_file_size;
 /* Boot file size in blocks as reported by the DHCP server */
index 6f75e3ce06c8d587628b629fe70eba4846a3f236..2926bceacbad812bbda0956dc905318917f9237e 100644 (file)
--- a/net/net.c
+++ b/net/net.c
@@ -164,7 +164,7 @@ ushort              net_our_vlan = 0xFFFF;
 ushort         net_native_vlan = 0xFFFF;
 
 /* Boot File name */
-char net_boot_file_name[128];
+char net_boot_file_name[1024];
 /* The actual transferred size of the bootfile (in bytes) */
 u32 net_boot_file_size;
 /* Boot file size in blocks as reported by the DHCP server */