OpenSolaris

Printable Version Enter a New Search
Bug ID 6748230
Synopsis gldv3_warning should initialize cnt when calling dladm_get_linkprop
State 10-Fix Delivered (Fix available in build)
Category:Subcategory network:config
Keywords
Responsible Engineer Sowmini Varadhan
Reported Against
Duplicate Of
Introduced In solaris_nevada
Commit to Fix snv_101
Fixed In snv_101
Release Fixed solaris_nevada(snv_101)
Related Bugs 6667363
Submit Date 14-September-2008
Last Update Date 22-October-2008
Description
Peter.Memishian noticed this:

gldv3_warning() passes an  uninitialized cnt variable into dladm_get_linkprop().  dladm_get_linkprop() checks that cnt is nonzero internally, so having it uninitialized will lead to unpredictable results.

It would also help to add comments around gldv3_warning explaining the purpose of this function, which was added to alert an administrator attempting to use ndd for ethernet/MII props to use dladm instead. Note that ndd is not used for any other datalink type, which makes it permissible for gldv3_warning to test for support of flowctrl (introduced by Brussels) before emitting the warning for Brussels-ized ethernet drivers only.
Work Around
N/A
Comments
N/A