Well, I'm not trying to get paid for helping here ;^) I noticed ((((mem_ptr_t)name) % 4) == 0)) in both macros, so sockets.c is actually expecting the 'name' pointer to be aligned to 32-bit boundaries. I don't see why and I'm not familiar with lwIP's socket interface, but this to me seems to be an alignment dependency issue in lwIP. Simon? For your specific problem, if you could somehow force the const struct sockaddr *name (that you are allocating and passing to lwip_bind() and lwip_connect()) to be aligned to 32-bits, that should solve your problems. How it is allocated is beyong my knowledge. Regards, and donate your payment to the lwIP foundation ;^)
_______________________________________________ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users