[Top][All Lists]

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

[lwip-devel] [bug #27352] Change ip_addr from struct to typedef (u32_t)

From: Simon Goldschmidt
Subject: [lwip-devel] [bug #27352] Change ip_addr from struct to typedef (u32_t)
Date: Wed, 12 May 2010 09:02:50 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv: Gecko/20100401 Firefox/3.6.3

Follow-up Comment #44, bug #27352 (project lwip):

I've just tried "typedef u32_t ip_addr_t" with my embedded compiler:

Unfortunately, gcc (nios2-elf-gcc, v3.4.1) does *not* warn about casting the
(possibly unaligned) IP address 'src' in struct ip_hdr to an ip_addr_t pointer
on the stack (which requires alignment).

Does anybody have an idea how to get such a warning? Without that, I think
it's too dangerous to use that typedef as we risk unaligned pointers which
would result in bad IP addresses...


Reply to this item at:


  Nachricht geschickt von/durch Savannah

reply via email to

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