lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-devel] Bug in Checksum implementation and ARP fix


From: Kenneth Porter
Subject: Re: [lwip-devel] Bug in Checksum implementation and ARP fix
Date: Thu, 30 Oct 2003 13:46:29 -0800

--On Thursday, October 30, 2003 8:34 AM +0200 Atte Kojo
<address@hidden> wrote:

> My solution to this is to define all struct members as u8_t arrays and
> use macros that pack/unpack the desired values to and from 16/32 bits.

This is really the core of the problem. One can't assume that one can convert
between a byte stream and native types using casts. Alignment requirements,
endianness, and native CPU word size all interfere with that assumption.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]