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?

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]

Reply via email to