Linux ioctl help.......................
HEY GUYZZZ plz plz plz help help me.
im actually making a packet sniffer using raw socket.
Its just that when i use the command '
if((ioctl(rawsock, SIOCGIFINDEX, &ifr)) == -1)
to get the interface index...
its gives me an error saying :invalid argument....?????
Any slutions
|