[En-Nut-Discussion] MSS not calculated correctly

Thiago A. Corrêa thiago.correa at gmail.com
Mon Apr 26 19:46:43 CEST 2010


Hi,

On Mon, Apr 26, 2010 at 2:35 PM, Harald Kipp <harald.kipp at egnite.de> wrote:
> Hi Henrik,
>
> Really interesting...
>
> FYI:
>
> The bug was introduced by
> http://ethernut.svn.sourceforge.net/viewvc/ethernut/trunk/nut/net/tcpsm.c?r1=1466&r2=1736
> fixing
> http://sourceforge.net/tracker/?func=detail&aid=1567748&group_id=34079&atid=410687
> reported by
> http://lists.egnite.de/pipermail/en-nut-discussion/2006-September/007252.html
>

So, the alignment issue was the first issue with that code.
I don't understand the alignment issue very well, but I guess we might
need a couple of access macros like linux. So we can properly acess
aligned/unaligned memory in host order and then make it network order
by ntohs, if necessary.

Kind Regards,
    Thiago A. Correa



More information about the En-Nut-Discussion mailing list