lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [bug #33485] SOCK_ADDR_TYPE_MATCH and SOCK_ADDR_TYPE_MATCH_


From: Bill Auerbach
Subject: [lwip-devel] [bug #33485] SOCK_ADDR_TYPE_MATCH and SOCK_ADDR_TYPE_MATCH_OR_UNSPEC use error
Date: Tue, 07 Jun 2011 14:50:18 +0000
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:2.0.1) Gecko/20100101 Firefox/4.0.1

Follow-up Comment #8, bug #33485 (project lwip):

>alignment1 and alignment2 will give the required result on most
compilers,...

I agree and I would say all compilers.  My point was there could be a lot of
compiler-added padding with the extra alignments and if the sa_* members are
each aligned.  alignment1 isn't necessary.  *If* a compiler is going to align
members, alignment2 will align the follow u8_t array.  And it will also align
alignment1 wasting space.

But the statement by Simon that this is an internal type changed my worries of
a bloated ip_addr type.  I thought it might be copied a good bit in the code
if it were a global type.


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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