From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH 0/1] TFTP: add host ip addr support
Date: Fri, 11 Jan 2008 01:12:35 +0100 [thread overview]
Message-ID: <20080111001235.GA21026@game.jcrosoft.org> (raw)
In-Reply-To: <4786AB4D.8070109@bluewatersys.com>
On 12:33 Fri 11 Jan , Andre Renaud wrote:
> Jean-Christophe PLAGNIOL-VILLARD wrote:
> Doesn't this mean that TftpServerIP will be undefined if no server is
> specified. Should it not be:
>
> @@ -464,19 +464,27 @@ TftpStart (void)
> printf ("*** Warning: no boot file name; using '%s'\n",
> tftp_filename);
> } else {
> - tftp_filename = BootFile;
> + char *p=BootFile;
> + p = strchr (p, ':');
> + if (p != NULL) {
> + TftpServerIP = string_to_ip (BootFile);
> + ++p;
> + strcpy (tftp_filename, p);
> + } else {
> + TftpServerIP = NetServerIP;
> + strcpy (tftp_filename, BootFile);
> + }
>
I will prefer
+ TftpServerIP = NetServerIP;
if (BootFile[0] == '\0') {
sprintf(default_filename, "%02lX%02lX%02lX%02lX.img",
NetOurIP & 0xFF,
@@ -464,19 +465,26 @@ TftpStart (void)
printf ("*** Warning: no boot file name; using '%s'\n",
tftp_filename);
} else {
- tftp_filename = BootFile;
+ char *p=BootFile;
+ p = strchr (p, ':');
+ if (p != NULL) {
+ TftpServerIP = string_to_ip (BootFile);
+ ++p;
+ strcpy (tftp_filename, p);
+ } else
+ strcpy (tftp_filename, BootFile);
> Andre
>
> --
> Bluewater Systems Ltd - ARM Technology Solutions Centre
>
> Andre Renaud Bluewater Systems Ltd
> Phone: +64 3 3779127 (Aus 1 800 148 751) Level 17, 119 Armagh St
> Fax: +64 3 3779135 PO Box 13889
> Email: arenaud at bluewatersys.com Christchurch
> Web: http://www.bluewatersys.com New Zealand
next prev parent reply other threads:[~2008-01-11 0:12 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-24 15:55 [U-Boot-Users] [PATCH] TFTP: add host ip addr support Jean-Christophe PLAGNIOL-VILLARD
2007-12-24 16:40 ` Jerry Van Baren
2008-01-09 21:31 ` [U-Boot-Users] [PATCH 0/1] " Jean-Christophe PLAGNIOL-VILLARD
2008-01-09 21:31 ` [U-Boot-Users] [PATCH 1/1] Fix nfs command help to reflect that the serverip is optional Jean-Christophe PLAGNIOL-VILLARD
2008-01-09 22:26 ` Ben Warren
2008-01-09 22:53 ` Wolfgang Denk
2008-01-10 23:01 ` [U-Boot-Users] [PATCH 0/1] TFTP: add host ip addr support Jean-Christophe PLAGNIOL-VILLARD
2008-01-10 23:01 ` [U-Boot-Users] [PATCH 1/1] Fix nfs command help to reflect that the serverip is optional Jean-Christophe PLAGNIOL-VILLARD
2008-01-10 23:33 ` [U-Boot-Users] [PATCH 0/1] TFTP: add host ip addr support Andre Renaud
2008-01-11 0:12 ` Jean-Christophe PLAGNIOL-VILLARD [this message]
2008-01-09 22:35 ` [U-Boot-Users] [PATCH 1/1] Fix nfs command help to reflect that the serverip is optional Wolfgang Denk
2008-01-09 22:39 ` [U-Boot-Users] [PATCH 0/1] TFTP: add host ip addr support Wolfgang Denk
2008-01-10 9:46 ` Jean-Christophe PLAGNIOL-VILLARD
2008-01-10 9:46 ` [U-Boot-Users] [PATCH 1/1] Fix nfs command help to reflect that the serverip is optional Jean-Christophe PLAGNIOL-VILLARD
2008-01-10 22:44 ` Wolfgang Denk
2008-01-10 22:43 ` [U-Boot-Users] [PATCH 0/1] TFTP: add host ip addr support Wolfgang Denk
2008-01-11 22:46 ` Ben Warren
2007-12-26 20:42 ` [U-Boot-Users] [PATCH] " Haavard Skinnemoen
2007-12-26 23:09 ` Wolfgang Denk
-- strict thread matches above, loose matches on Subject: below --
2008-01-16 23:33 Ben Warren
2008-01-17 22:08 ` [U-Boot-Users] [PATCH 0/1] " Jean-Christophe PLAGNIOL-VILLARD
2008-01-17 22:31 ` Wolfgang Denk
2008-01-17 22:42 ` Andre Renaud
2008-01-18 0:19 ` Ben Warren
2008-01-18 0:30 ` Jean-Christophe PLAGNIOL-VILLARD
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080111001235.GA21026@game.jcrosoft.org \
--to=plagnioj@jcrosoft.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.