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: Bill Auerbach
Subject: [lwip-devel] [bug #27352] Change ip_addr from struct to typedef (u32_t)
Date: Mon, 01 Feb 2010 14:15:12 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 (.NET CLR 3.5.30729)

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

One possibility not mentioned is to pass ip_addr as a variable and not
pointer to an ip_addr.  When it's a u32_t the lack of concern for alignment is
obvious.  For IPv6 this means the typedef has to be a struct and it's passed
by value by the compiler (with a copy).  I don't think anyone requiring IPv6
can be worrying too much about performance - on some processors I don't even
know if IPv6 makes sense.  Do IPv6 and "light weight" fit in the same
sentence?

Option c) might be "Replace &(var_iphdr) with var_iphdr"

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

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