19 lines
372 B
C
19 lines
372 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]);
|
||
fprintf(stderr, "Configurez l’interface puis appuyez sur <Entrée>... ");
|
||
fflush(stderr);
|
||
getchar();
|
||
fprintf(stderr, "Démarrage.");
|
||
copy(tun, 1);
|
||
return 0;
|
||
}
|