Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sudo mknod /dev/net/tap c 10 200
- /*
- * Taken from Kernel Documentation/networking/tuntap.txt
- */
- int tun_alloc(char *dev)
- {
- struct ifreq ifr;
- int fd, err;
- /* Arguments taken by the function:
- *
- * char *dev: the name of an interface (or '