17 lines
313 B
C
17 lines
313 B
C
|
#include "iftun.h"
|
|||
|
|
|||
|
#include <stdio.h>
|
|||
|
|
|||
|
|
|||
|
int main(int argc, char *argv[argc]) {
|
|||
|
if (argc != 2) {
|
|||
|
fprintf(stderr, "Utilisation : %s interface\n", argv[0]);
|
|||
|
return 1;
|
|||
|
}
|
|||
|
int tun = tun_alloc(argv[1]);
|
|||
|
printf("Configurez l’interface puis appuyez sur une touche.\n");
|
|||
|
getchar();
|
|||
|
copy(tun, 1);
|
|||
|
return 0;
|
|||
|
}
|