lwip-devel
[Top][All Lists]
Advanced

[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:1.9.2.3) 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:

  <http://savannah.nongnu.org/bugs/?27352>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.nongnu.org/




reply via email to

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