Sowmini.Varadhan at Sun.COM wrote: >> Sure. I think it is a good idea. >> >>> One feature of ndd that is popular with its users is the "ndd -get <dev> \?" >>> and it would be nice if show-linkprop output can print out a short >>> description of the property itself. >> So that we will need to introduce another option to show-linkprop to show >> description of the link properties? > > I tried prototyping something similar yesterday.. once there > is a char * field in prop_desc_t, I think we would probably > need something like a new print_linkprop_desc() that attaches the > desc (suitably formatted) to the end of the ls_line buffer, and a call > to this print_linkprop_desc() from print_linkprop... > > Assuming that we want to fit everything in the conventional 80 char > wide xterm, the output itself could either be something likeA: > > PROPERTY VALUE DEFAULT POSSIBLE > adv_autoneg_cap .. .. .. "short > description" > /* 20 chars */ > > or, > > PROPERTY VALUE DEFAULT POSSIBLE > adv_autoneg_cap .. .. .. \n > "long property description can go here" > I personally don't like the two-lines option and am not sure how it affects the user experience. Before we make that change, I guess we'd at least need to first run through networking-discuss.
- Cathy
