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/src/test-iftun.c

17 lines
322 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 18:14:38 +02:00
fprintf(stderr, "Configurez linterface puis appuyez sur une touche.\n");
2019-10-25 18:07:02 +02:00
getchar();
copy(tun, 1);
return 0;
}