[U-Boot] [PATCH]Fix checksum to handle odd-length packet
Greg Ren
gren at ubicom.com
Wed Dec 9 00:53:16 CET 2009
I must have missed it. The only suggestion that I remember was referring
to how to generate patch using git email. As for technical discussion,
it was ended as "not endianess clean".
Greg Ren
-----Original Message-----
From: Joakim Tjernlund [mailto:joakim.tjernlund at transmode.se]
Sent: Tuesday, December 08, 2009 3:43 PM
To: Greg Ren
Cc: u-boot at lists.denx.de; Wolfgang Denk
Subject: Re: [U-Boot] [PATCH]Fix checksum to handle odd-length packet
>
> Ah. I just realize that the endianess can be supported as simple as:
>
> In stead of this:
> xsum += (*p & 0xff00);
> Use this:
> xsum += (*p & ntohs(0xff00));
Did you look at the suggestion I sent you?
I know it works because I use in ospf.
Jocke
More information about the U-Boot
mailing list