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: Stephane Lesage
Subject: [lwip-devel] [bug #27352] Change ip_addr from struct to typedef (u32_t)
Date: Mon, 08 Feb 2010 11:02:20 +0000
User-agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)

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

>I don't really understand actually where the difference is between ip-addr
and in-addr here.
>Did you mean you were confused by having both structs for the stack?
>Well, if you are only programming sockets that you shouldn't have used
struct ip_addr at all...

we all use ip_addr for netif for example, and some useful macros of ip_addr
don't exist for in_addr, which force to cast to use them.
It would be nice to unify this.

>After all, in_addr is a socket-only define

ok we must have it for sockets, but it doesn't mean we can't use it
internally...

>and in my opinion, the code gets rather ugly when using it... 

really? what's the difference between ->addr and ->s_addr ?
anyway, with your the new macros we don't have to worry about that.



    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message posté via/par Savannah
  http://savannah.nongnu.org/





reply via email to

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