Bill Campbell <[EMAIL PROTECTED]> wrote:
> >  For uint8_t arrays, The 'sizeof' the array is the number of elements.
> 
> OK.  While that may be the case for uint8_t, it seems to me that good
> coding practice is to use sizeof here and not depend on knowledge of the
> internal size of the elements.

  The problem is that the fields are defined in relation to the
protocol: 16 octets.  sizeof() is a C programming construct, and thus
there may be padding in a struct.  We do not want that padding to
affect the programs ability to generate or parse 16 octet fields.

  Alan DeKok.

- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to