Does the following setting in lwipopts.h file guarantee that the pbuf->payload would be aligned on a 8-byte boundary?
#define
MEM_ALIGNMENT
8
Also, I had to define the mem_ptr_t to be u64_t which again is
typedef'ed to unsigned long long as I was getting compilation errors
otherwise. I am using lwip 0.7.2.