Currrently, dlpi_open() has the following logic to open linknames with the format - device.[module[module]]PPA:
open 'device', then push 'module(s)' and attach to the PPA. In the case of IPNET, this parsing should not be done. When ipnet devices are opened dlpi_open should open all devices directly. For examle when '/dev/ipnet/ip.tun0' is to be opened it should try opening 'ip.tun0' under '/dev/ipnet'. Note that the dance done with modules will be gone with the putback of ip tunnels so as a temporary solution, the fix for the above can be: 1) short-circuit the current logic of opening the 'device' part in each style1/style2 open and simply open the entire 'linkname provide. 2) Another hack, reset the dip->dli_mod_cnt value to 0 when the ipnet flag is set that way the the logic in dlpi_open() rest just works as is. I prefer 2 but wanted to ask others opinion. -Thanks, Sagun
