tunctl.c revision c3cd0366348bcd10e42bd7be9ea05d194394f389
/* Copyright 2002 Jeff Dike
* Licensed under the GPL
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <fcntl.h>
#include <unistd.h>
#include <pwd.h>
{
"[-f tun-clone-device]\n", name);
name);
exit(1);
}
{
switch(opt) {
case 'b':
brief = 1;
break;
case 'd':
delete = 1;
break;
case 'f':
break;
case 'u':
break;
}
if(*end != '\0'){
optarg);
}
break;
case 't':
break;
case 'h':
default:
}
}
if(argc > 0)
perror("");
exit(1);
}
perror("TUNSETIFF");
exit(1);
}
if(delete){
perror("TUNSETPERSIST");
exit(1);
}
}
else {
perror("TUNSETPERSIST");
exit(1);
}
perror("TUNSETPERSIST");
exit(1);
}
if(brief)
owner);
}
return(0);
}