Vivek S wrote: > I have gone through all these ioctls. There isnt any ioctl to plumb an > interface.
There isn't just one. Read the man page. To plumb an interface, you open a DLPI device, and use the I_PUSH ioctl to push the "ip" module on top. That creates (plumbs) an IP interface. There's a lot more work to do, though, to plumb properly. You also have to set up an ARP stream (if this is an interface that uses ARP; point-to-point interfaces don't need this), and you may need to do I_PLINK if you want the interface to remain in the kernel after your application exits. I urge you to reconsider your plan. > Also is there any ioctl or API to assign dhcp to an interface? There's no *public* interface for this other than ifconfig(1M). The private (undocumented, subject to substantial and arbitrary change at any time, including in patches) interface is libdhcpagent. -- James Carlson 42.703N 71.076W <[email protected]> _______________________________________________ networking-discuss mailing list [email protected]
