Using ioctl() to setup ipip tunnel
My program needs to setup ipip tunnel. One way I know is to call system() to execute a shell command, the other is to call ioctl().As we know, ioctl() has three parameters, first is a socket number, second is an operation number which I'v found in /usr/include/linux/if_tunnel.h(I don't know if it exactly is), and the third is a pointer. I don't know what type the third parameter is. If anyone ever used it, tell me everything in details please!
|