diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-07-12 15:49:45 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-07-12 15:49:45 +0000 |
commit | bd4cda0da2a17b39656b06e9df365002585458e0 (patch) | |
tree | 799a623a897931fb21422cbe3b62d8a49864ac99 | |
parent | Changed version to 199900709. (diff) | |
download | network-demos-bd4cda0da2a17b39656b06e9df365002585458e0.tar.bz2 |
Patch from Eric Norum <eric@cls.usask.ca>:
I changed the TFTP test program and TFTP driver to reflect the
changes in the way paths are passed to the TFTP driver. The TFTP driver
now needs a proper `dotted-decimal' hostname as the second component of
the path name.
-rw-r--r-- | tftpTest/init.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tftpTest/init.c b/tftpTest/init.c index 27d0a5c..821e247 100644 --- a/tftpTest/init.c +++ b/tftpTest/init.c @@ -42,6 +42,8 @@ rtems_task Init (rtems_task_argument argument); #include <stdio.h> #include <rtems/rtems_bsdnet.h> +#include <netinet/in.h> +#include <arpa/inet.h> #include "../networkconfig.h" /* @@ -56,7 +58,7 @@ Init (rtems_task_argument ignored) rtems_bsdnet_initialize_tftp_filesystem (); #if (defined (RTEMS_USE_BOOTP)) - hostname = NULL; + hostname = inet_ntoa (rtems_bsdnet_bootp_server_address); filename = rtems_bsdnet_bootp_boot_file_name; #else hostname = RTEMS_TFTP_TEST_HOST_NAME; |