[U-Boot-Users] [PATCH] TFTP stops working on little endian systems

21 Aug
2007
21 Aug
'07
12:59 p.m.
TFTP does not work anymore after multicast tftp patch was applied on little endian systems. This patch fix it.
Signed-off-by: Stefano Babic sbabic@denx.de
--
stefano stefano.babic@babic.homelinux.org
GPG Key: 0x55814DDE
Fingerprint 4E85 2A66 4CBA 497A 2A7B D3BF 5973 F216 5581 4DDE
>From c7d2ba2dd0ea0b5e1efca445001098798ebf269d Mon Sep 17 00:00:00 2001
From: Stefano Babic sbabic@denx.de
Date: Tue, 21 Aug 2007 12:56:05 +0200
Subject: [PATCH] TFTP is not working after last patch on little endian systems.
This patch fix this bug.
Signed-off-by: Stefano Babic sbabic@denx.de
---
net/tftp.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/net/tftp.c b/net/tftp.c
index fb2f505..d6db91c 100644
--- a/net/tftp.c
+++ b/net/tftp.c
@@ -178,7 +178,7 @@ TftpSend (void)
pkt += strlen((char *)pkt) + 1;
/* try for more effic. blk size */
pkt += sprintf((char *)pkt,"blksize%c%d%c",
- 0,TftpBlkSizeOption,0);
+ 0,htons(TftpBlkSizeOption),0);
#ifdef CONFIG_MCAST_TFTP
/* Check all preconditions before even trying the option */
if (!ProhibitMcast
--
1.4.3.4

21 Aug
21 Aug
3:52 p.m.
New subject: [U-Boot-Users] [PATCH] TFTP stops working on little endian systems
TFTP does not work anymore after multicast tftp patch was applied on little endian systems. This patch fix it.
Signed-off-by: Stefano Babic sbabic@denx.de
--
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office@denx.de
=====================================================================
>From c7d2ba2dd0ea0b5e1efca445001098798ebf269d Mon Sep 17 00:00:00 2001
From: Stefano Babic sbabic@denx.de
Date: Tue, 21 Aug 2007 12:56:05 +0200
Subject: [PATCH] TFTP is not working after last patch on little endian systems.
This patch fix this bug.
Signed-off-by: Stefano Babic sbabic@denx.de
---
net/tftp.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/net/tftp.c b/net/tftp.c
index d6db91c..fb2f505 100644
--- a/net/tftp.c
+++ b/net/tftp.c
@@ -178,7 +178,7 @@ TftpSend (void)
pkt += strlen((char *)pkt) + 1;
/* try for more effic. blk size */
pkt += sprintf((char *)pkt,"blksize%c%d%c",
- 0,htons(TftpBlkSizeOption),0);
+ 0,TftpBlkSizeOption,0);
#ifdef CONFIG_MCAST_TFTP
/* Check all preconditions before even trying the option */
if (!ProhibitMcast
--
1.4.3.4

29 Aug
29 Aug
2:15 a.m.
New subject: [U-Boot-Users] [PATCH] TFTP stops working on little endian systems
In message 46CAEE21.4000002@denx.de you wrote:
This is a multi-part message in MIME format. --------------060002010201090308020102 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit
TFTP does not work anymore after multicast tftp patch was applied on little endian systems. This patch fix it.
Signed-off-by: Stefano Babic sbabic@denx.de
Applied, thanks.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
Q: How do you spell "onomatopoeia"?
A: The way it sounds.
6465
Age (days ago)
6473
Last active (days ago)
2 comments
3 participants
participants (3)
-
stefano babic
-
stefano babic
-
Wolfgang Denk