Darren Reed writes:
> The "flat verb namespace" that is present in dladm just doesn't
> lend itself to the type of architecture that is required to support
> the kernel MAC plugins - well, not in an obvious manner, anyway.
> 
> Perhaps the parser could just as easily break "create-pigeon"
> into "pigeon" and then ask the pigeon shared library to do
> something with "create"... although I'm not sure it is good to
> make people wait while dladm waits for an egg hatch ;-)

The easy way to do this is to ignore the substructure of the
commands.  Just read the plug-in directory contents and load 'em all.
Then have the main() routine in each plug-in call a function that
installs the command line extensions.

I don't see much of a reason to bother loading these things on demand
based on what appears on the command line.

-- 
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