Trying to get the IAP id or the interface name by using:
ioctl(fd, SIOCGIFACTIVECONF, &ifc);
but code does not gets compiled & says illegal function overloading, of course which is due to mismatch between declaration & definition of above function. After searching, i found its due to the older version of OpenC plugin, thereby i downloaded the latest one , i.e.OpenC 1.7.Its also written in its release notes that it contains the fixed ioctl() which accepts the reference types for struct ifconf , but it doesn't seems to work for me.If i open the declaration for ioctl(), it expects int, int,void*.
I am using the following link for reference:
So anything i am missing , please share.
Also my purpose for finding the interface name is to pass the name in the following function : setdefaultif()
so if there exists any other way to find the name please share.