Sebastien Roy wrote:
> 
> Therefore, we need a function to allocate a linkid from the kernel, and 
> I don't believe the UV gate has such a function.  That way, the 
> IPTUN_CREATE ioctl can generate a link name, call the linkid allocation 
> function (which would presumably result in a door upcall to linkmgmtd), 
> then call mac_register() with the resulting linkid.
> 
> Thoughts?
>

There is a door upcall, take a look at dls_linkmgmt_create in dls.c for 
an example of its use.  The handler in linkmgmtd is 
linkmgmt_upcall_handler, which for creation calls linkmgmt_dls_create.

For this interface, linkmgmtd will suggest a name if the name you give 
it already exists.  Currently the functionality suggests a name of the 
form "netN" where N is an integer.  The upcall handler is also written 
assuming that you're either creating a VLAN or a physical link.

So we have the functionality, it sounds like we need to modify it a bit 
to handle what you need.

Dan

Reply via email to