LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Difference between tun & tap (https://www.linuxquestions.org/questions/linux-newbie-8/difference-between-tun-and-tap-757418/)

vrush_son 09-24-2009 12:53 AM

Difference between tun & tap
 
Hi All,

Please provide any basic c programs to understand tun & tap difference better.

:)
Vru

lutusp 09-24-2009 03:00 AM

Quote:

Originally Posted by vrush_son (Post 3695115)
Hi All,

Please provide any basic c programs to understand tun & tap difference better.

:)
Vru

Okay, here ya go. In a file named "program.c", we have:

Code:

#include <stdio.h>

int main(int argc, char **argcv) {
  printf("Have you considered looking this up on Google?\n");
  return 0;
}

$ make program
cc program.c -o program
$ ./program
Have you considered looking this up on Google?


All times are GMT -5. The time now is 06:48 AM.