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: Mon, 31 Aug 2009 09:04:42 +0000
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; de; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2

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

OK, that's definitively a fact I haven't been thinking about. That would also
be the reason the struct ip_addr is used as a pointer everywhere, not directly
as value.

However, we could still convert the IPv6 struct to

PACK_STRUCT_BEGIN
struct _ip_addr {
PACK_STRUCT_FIELD(u32_t addr[4]);
} ip_addr PACK_STRUCT_STRUCT;
PACK_STRUCT_END

That way it is used without 'struct', much the same way as 'typedef u32_t
ip_addr;'.

The IPv6 implementation must be changed anyway, so that v4 and v6 can be used
at the same time (e.g. renaming the struct/type to ip6_addr).

    _______________________________________________________

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]