[brussels-dev] NDD compatibility shim in gldv3
Sebastien Roy
Sebastien.Roy at Sun.COM
Sun Feb 10 12:22:39 PST 2008
Sowmini.Varadhan at Sun.COM wrote:
> On (02/08/08 12:11), Garrett D'Amore wrote:
>> 3) mac_ndd.c: Since '?' is normally used only by humans, maybe this would
>> be a good time to issue a warning inline? Alternatively, just replacing
>> the '?' with a message to see dladm(1M) may be appropriate. (But due to
>> i18n concerns, maybe the better way to do this is in ndd(1M) itself, using
>> a special errno to indicate that the driver is a Brussels driver?)
>
> Actually, I would not be surprised if there were scripts out there
> that did something like
> var =`ndd -get $DRV \?|grep pause`
> for example, given the variations that we see in the ndd tunable
> names, so I think we should retain the support for "ndd -get \?".
>
> I do, however end up printing a warning:
>
> # ndd -get /dev/bge1 \?
> Feb 8 16:30:51 whitestar2-9.East.Sun.COM mac: WARNING: The ndd
> commands are obsolete and may be removed in a future release of
> Solaris. Use dladm(1M) to manage driver tunables
See:
6625930 ndd -get /dev/ip <if>:ip_forwarding sends warning to console, not
terminal where command was issued
... for an example of a warning of that nature ending up in the bug
database. In retrospect, I should have implemented something to allow
ndd to print a warning to the caller's stdio.
-Seb
More information about the brussels-dev
mailing list