I would appreciate it if someone could provide me with or point me to some
sample code that demonstrates
adding a logical interface on a physical interface using the ioctl()
i.e. I want to accomplish the same as what the ifconfig command would if the
following were executed:
( Given that hme2 is a physical interface which has already been
configured and is up. )
> ifconfig hme2:1
> ifconfig hme2:1 inet 128.10.1..32 netmask 255.255.255.0
> ifconfig hme2:1 up
OS: Solaris 2.6, 2.8, and Linux.
Thanks in advance.