[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: |
Fri, 29 Jan 2010 08:44:27 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2) Gecko/20100115 Firefox/3.6 |
Update of bug #27352 (project lwip):
Status: None => Need Info
_______________________________________________________
Follow-up Comment #6:
There is one problem here: the address pointer as passed to the recv callback
functions might be unaligned since it currently points into the pbuf payload.
If we wanted to remove packing from struct ip_addr or use an u32_t (and an
u32_t pointer in the callbacks?), we either would
a) have to copy the address or
b) directly use an u32_t for the callbacks instead of a pointer
The problem with a) is the addresses scope when it is passed on to
netconn/socket api. The problem with b) is that it is uneffective with IPv6.
Given that, I'd chose a) and copy the address when using netconn/socket api
because that way, we prevent having to change the api again once IPv6 gets
usable again (which I'd like to see).
Any other opinions?
_______________________________________________________
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/01/29
- [lwip-devel] [bug #27352] Change ip_addr from struct to typedef (u32_t), Simon Goldschmidt, 2010/01/29
- [lwip-devel] [bug #27352] Change ip_addr from struct to typedef (u32_t), Bill Auerbach, 2010/01/29
- [lwip-devel] [bug #27352] Change ip_addr from struct to typedef (u32_t), Simon Goldschmidt, 2010/01/29
- [lwip-devel] [bug #27352] Change ip_addr from struct to typedef (u32_t), Bill Auerbach, 2010/01/29
- [lwip-devel] [bug #27352] Change ip_addr from struct to typedef (u32_t), Simon Goldschmidt, 2010/01/29
- [lwip-devel] [bug #27352] Change ip_addr from struct to typedef (u32_t), Mike Kleshov, 2010/01/29
- [lwip-devel] [bug #27352] Change ip_addr from struct to typedef (u32_t), Kieran Mansley, 2010/01/31
- [lwip-devel] [bug #27352] Change ip_addr from struct to typedef (u32_t), Simon Goldschmidt, 2010/01/31