[Top][All Lists]

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

[lwip-devel] [task #14247] socket API: implement recvmsg msg_control sup

From: Simon Goldschmidt
Subject: [lwip-devel] [task #14247] socket API: implement recvmsg msg_control support
Date: Wed, 26 Apr 2017 02:19:04 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36

Follow-up Comment #24, task #14247 (project lwip):

Whatever the problem with ALIGN_H and ALIGN_D is, the compiler error would not
be fixed by changing that. The compiler just sees

struct in_pktinfo* pktinfo = (struct in_pktinfo*)(u8_t*)ptr;

It's the direct cast from u8_t pointer to struct pointer that is "bad". Using
LWIP_ALIGNMENT_CAST() should fix this, but I'm not sure where to add that or
what the standard thing to do here is. We should probably return a void
pointer here instead of an u8_t pointer.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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