On 09/12/2016 11:04, "Jarno Rajahalme" wrote:
>Acked-by: Jarno Rajahalme
Thanks Jarno, I pushed this to master and up to branch-2.3
>
>> On Dec 8, 2016, at 6:50 PM, Daniele Di Proietto
>> wrote:
>>
>> Even though it reads 16 bits at a time, csum_continue() is almost
>> neutral to endia
Acked-by: Jarno Rajahalme
> On Dec 8, 2016, at 6:50 PM, Daniele Di Proietto
> wrote:
>
> Even though it reads 16 bits at a time, csum_continue() is almost
> neutral to endianness (see RFC 1071 1.2 (B), "Byte Order Independence").
>
> Consider a buffer like the following:
>
> : XX YY
Even though it reads 16 bits at a time, csum_continue() is almost
neutral to endianness (see RFC 1071 1.2 (B), "Byte Order Independence").
Consider a buffer like the following:
: XX YY XX YY XX YY XX YY ZZ
Each couple of bytes is interpreted on little endian as:
*data = 0xYYXX
while on