> In both cases, the usage looks mistaken.  DLADM_SECOBJ_NAME_MAX has a
 > value of 32.  The correct constant (used for wk_name[]) is
 > DLADM_WLAN_MAX_KEYNAME_LEN, which has a length of 64.
 > 
 > Does anyone know the history here?  What the heck is
 > DLADM_SECOBJ_NAME_MAX, and why is it defined but not used inside
 > libdladm?

DLADM_SECOBJ_NAME_MAX is supposed to represent the largest secure object
name that one can use with the dladm_*_secobj() functions.  IIRC, it was
introduced because NWAM was previously using DLD_SECOBJ_NAME_MAX, but
that's not supposed to be visible to libdladm consumers (DLD as a whole is
an implementation artifact from the point of view of libdladm consumers).

As for DLADM_WLAN_MAX_KEYNAME_LEN: I don't know how that works given that
DLD_SECOBJ_NAME_MAX is 32.

-- 
meem
_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to