std C/C++ patch #9

Eddie Kohler kohler at icir.org
Mon Apr 29 13:58:07 EDT 2002


In fact, I believe the C++ standard forces 
sizeof(unpacked click_ether) == 16 on a four-byte-alignment machine:

5.3.3 par.2:
   ... When [operator sizeof is] applied to a class, the result is the
   number of bytes in an object of that class including any padding
   required for placing objects of that type in an array.

Eddie



More information about the click mailing list