lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] Assertion fails for MEM_ALIGNMENT 2 since Bugfix #39683


From: Michael Waeber
Subject: [lwip-devel] Assertion fails for MEM_ALIGNMENT 2 since Bugfix #39683
Date: Wed, 01 Apr 2015 10:11:43 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0

In our system we have MEM_ALIGNMENT set to 2 (ColdFire/M68K).

#39683: tcp_out.c tcp_enqueue_flags():
< LWIP_ASSERT("seg->tcphdr not aligned", ((mem_ptr_t)seg->tcphdr %
MEM_ALIGNMENT) == 0);
> LWIP_ASSERT("seg->tcphdr not aligned", ((mem_ptr_t)seg->tcphdr % 4) == 0);

The assertion fails since the buffer is aligned on a 2 Byte boundary.
Why should it aligned to 4?

Regards
Michael




reply via email to

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