interface index
hello,
can someone tell me how I can get the interface index of a socket connection in kernel space? I mean ow can I use this call in kernel space:
ioctl(sock, SIOCGIFFLAGS, &ifInfo)
I need it to bind the socket to a ethernet interface.
thanks a lot