This repository has been archived on 2019-11-14. You can view files and clone it, but cannot push or open issues or pull requests.
rip-vm2/partage/test/iftun.c

19 lines
372 B
C
Raw Normal View History

2019-10-25 18:07:02 +02:00
#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]);
2019-10-25 23:53:43 +02:00
fprintf(stderr, "Configurez linterface puis appuyez sur <Entrée>... ");
fflush(stderr);
2019-10-25 18:07:02 +02:00
getchar();
2019-10-25 23:53:43 +02:00
fprintf(stderr, "Démarrage.");
2019-10-25 18:07:02 +02:00
copy(tun, 1);
return 0;
}