On (09/30/09 17:53), Vivek S wrote: > > I have gone through all these ioctls. There isnt any ioctl to plumb an > interface. > > Also is there any ioctl or API to assign dhcp to an interface?
There isnt any ioctl to do these things today, but Brussels II is coming out with a library that will do exactly these things. See http://www.opensolaris.org/os/project/brussels/files/brussels2.pdf Note that there will be a libipadm will also be coming up with a library interface corresponding to each API invocation. --Sowmini > > On Wed, Sep 30, 2009 at 5:45 PM, James Carlson > <[email protected]>wrote: > > > viveks wrote: > > > Hi, > > > > > > Is there any ioctl or API to plumb an interface? i dont want to use > > ifconfig. > > > > man -s 7P if_tcp > > > > Note, though, that you're in a _MUCH_ better position if you can fork > > and exec ifconfig(1M). If you need an "API" for it, then write a simple > > function that does just that. > > > > Sun's engineers have made much of wanting to drive away from the STREAMS > > and DLPI interfaces that the above documented interface uses. At a > > minimum, you will be sacrificing performance and functionality by using > > those older interfaces. > > > > > While assigning a vlan id to an interface we need to plumb the pseudo > > interface. I want to do it programatically. > > > > Then write a function that forks and execs ifconfig. Really. How is > > that any less "programmatic" than ioctl? > > > > -- > > James Carlson 42.703N 71.076W <[email protected]> > > > _______________________________________________ > networking-discuss mailing list > [email protected] _______________________________________________ networking-discuss mailing list [email protected]
