I just discovered that nwamd has been camping on
DLADM_SECOBJ_NAME_MAX from libdllink.h.  As best I can tell, the only
other thing that uses that value is 'wpad.'

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?

This means that the keys stored by nwamd in the database are
truncated, and I'm going to have to work around this problem.  :-<

-- 
James Carlson, Solaris Networking              <[EMAIL PROTECTED]>
Sun Microsystems / 35 Network Drive        71.232W   Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757   42.496N   Fax +1 781 442 1677
_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to