[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: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/
- [lwip-devel] [bug #27352] Change ip_addr from struct to typedef (u32_t),
Simon Goldschmidt <=
- [lwip-devel] [bug #27352] Change ip_addr from struct to typedef (u32_t), Bill Auerbach, 2010/05/12
- [lwip-devel] [bug #27352] Change ip_addr from struct to typedef (u32_t), Simon Goldschmidt, 2010/05/14
- [lwip-devel] [bug #27352] Change ip_addr from struct to typedef (u32_t), David Empson, 2010/05/16
- [lwip-devel] [bug #27352] Change ip_addr from struct to typedef (u32_t), David Empson, 2010/05/16
- [lwip-devel] [bug #27352] Change ip_addr from struct to typedef (u32_t), Simon Goldschmidt, 2010/05/17
- [lwip-devel] [bug #27352] Change ip_addr from struct to typedef (u32_t), Kieran Mansley, 2010/05/18
- [lwip-devel] [bug #27352] Change ip_addr from struct to typedef (u32_t), Simon Goldschmidt, 2010/05/18
- [lwip-devel] [bug #27352] Change ip_addr from struct to typedef (u32_t), Bill Auerbach, 2010/05/18
- Message not available
- [lwip-devel] [bug #27352] Change ip_addr from struct to typedef (u32_t), Bill Auerbach, 2010/05/19
- Message not available
- Message not available
- [lwip-devel] [bug #27352] Change ip_addr from struct to typedef (u32_t), Bill Auerbach, 2010/05/19