[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: |
David Empson |
Subject: |
[lwip-devel] [bug #27352] Change ip_addr from struct to typedef (u32_t) |
Date: |
Mon, 31 Aug 2009 03:40:14 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 |
Follow-up Comment #2, bug #27352 (project lwip):
There could be a significant forward compatibility issue with this proposed
change: IPv6.
If the IPv4 version of struct ip_addr is changed to a simple typedef u32_t,
and API changes are made accordingly, it will break the current IPv6
implementation and require reversing these changes in future if IPv6 is fully
implemented.
At present, the partial IPv6 implementation in LWIP has a similar struct
ip_addr definition, which includes four 32-bit integers:
PACK_STRUCT_BEGIN
struct ip_addr {
PACK_STRUCT_FIELD(u32_t addr[4]);
} PACK_STRUCT_STRUCT;
PACK_STRUCT_END
This cannot be declared as a simple integer type in any existing compiler
(unless there is a platform which directly supports 128-bit integers).
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?27352>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/