Paul Durrant wrote: > Darren Reed wrote: > >> >> Thoughts? >> > > We thought about such things before Nemo was delivered into ON and may > have even had a version of dladm with a CLI as you suggest. However > such a CLI did not appear to meet the CLIP rules as laid down in the > PSARC case (can't remember the case # off the top of my head) and so > we have the present CLI.
PSARC/2004/571 appears to be the one that introduced dladm. UIRB 2004/763 was for dladm, although I'm not sure where to go for materials related to that. > Personally I don't think a general create verb would lessen the > documentation required for introducing a new kind of object, nor would > it necessarily simplify the CL parsing required in dladm. A flat > verb-object namespace is probably simpler to extend. I'm not particularly interested in whether or not the CL is simple to parse... Rather, we have an inequality between the kernel MAC API and that for userspace (well, for dladm.) What do I mean by this "inequality"? If I create a new MAC type, "foo", and put it in the proper kernel mac directory (/kernel/mac), I can load it in and work with it... but how do I manage it or work with it? For example, we have /kernel/mac/mac_wifi that is connected with scan-wifi, connect-wifi, etc, in dladm. But if I create /kernel/mac/mac_pigeon, how do I interact with that using dladm, in the same way that I do with wifi? I have to hack dladm to support "feed-pigeon" and related commands. That seems ... not very helpful. If we're going to support MAC plugins in the kernel then we need to have a plugin interface to manage them from user space too, a place where you can dump a shared library and have that "just work" with the dladm command. 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 ;-) Darren _______________________________________________ networking-discuss mailing list [email protected]
