mirror of
https://github.com/yarrick/iodine.git
synced 2025-04-07 11:07:03 +00:00
Iodine: Cleaned up
This commit is contained in:
parent
119c78c253
commit
fc4e6929b1
4 changed files with 10 additions and 10 deletions
|
@ -65,7 +65,7 @@ usage() {
|
|||
fprintf(stderr, "Usage: %s [-v] [-h] [-f] [-r] [-u user] [-t chrootdir] [-d device] "
|
||||
"[-P password] [-6] [-m maxfragsize] [-M maxlen] [-T type] [-O enc] [-L 0|1] [-I sec] "
|
||||
"[-z context] [-F pidfile] [nameserver] topdomain\n", __progname);
|
||||
#elif
|
||||
#else
|
||||
fprintf(stderr, "Usage: %s [-v] [-h] [-f] [-r] [-u user] [-t chrootdir] [-d device] "
|
||||
"[-P password] [-m maxfragsize] [-M maxlen] [-T type] [-O enc] [-L 0|1] [-I sec] "
|
||||
"[-z context] [-F pidfile] [nameserver] topdomain\n", __progname);
|
||||
|
@ -82,7 +82,7 @@ help() {
|
|||
fprintf(stderr, "Usage: %s [-v] [-h] [-f] [-r] [-u user] [-t chrootdir] [-d device] "
|
||||
"[-P password] [-6] [-m maxfragsize] [-M maxlen] [-T type] [-O enc] [-L 0|1] [-I sec] "
|
||||
"[-z context] [-F pidfile] [nameserver] topdomain\n", __progname);
|
||||
#elif
|
||||
#else
|
||||
fprintf(stderr, "Usage: %s [-v] [-h] [-f] [-r] [-u user] [-t chrootdir] [-d device] "
|
||||
"[-P password] [-m maxfragsize] [-M maxlen] [-T type] [-O enc] [-L 0|1] [-I sec] "
|
||||
"[-z context] [-F pidfile] [nameserver] topdomain\n", __progname);
|
||||
|
@ -200,7 +200,7 @@ main(int argc, char **argv)
|
|||
|
||||
#ifdef LINUX
|
||||
while ((choice = getopt(argc, argv, "6vfhru:t:d:R:P:m:M:F:T:O:L:I:")) != -1) {
|
||||
#elif
|
||||
#else
|
||||
while ((choice = getopt(argc, argv, "vfhru:t:d:R:P:m:M:F:T:O:L:I:")) != -1) {
|
||||
#endif
|
||||
switch(choice) {
|
||||
|
|
|
@ -2197,7 +2197,7 @@ usage() {
|
|||
"[-l ip address to listen on] [-p port] [-n external ip] "
|
||||
"[-b dnsport] [-P password] [-F pidfile] "
|
||||
"tunnel_ip[/netmask] [tunnel_net6/netmask6] topdomain\n", __progname);
|
||||
#elif
|
||||
#else
|
||||
fprintf(stderr, "Usage: %s [-v] [-h] [-c] [-s] [-f] [-D] [-u user] "
|
||||
"[-t chrootdir] [-d device] [-m mtu] [-z context] "
|
||||
"[-l ip address to listen on] [-p port] [-n external ip] "
|
||||
|
@ -2217,7 +2217,7 @@ help() {
|
|||
"[-t chrootdir] [-d device] [-m mtu] [-z context] "
|
||||
"[-l ip address to listen on] [-p port] [-n external ip] [-b dnsport] [-P password] "
|
||||
"[-F pidfile] tunnel_ip[/netmask] [tunnel_net6/netmask6] topdomain\n", __progname);
|
||||
#elif
|
||||
#else
|
||||
fprintf(stderr, "Usage: %s [-v] [-h] [-c] [-s] [-f] [-D] [-u user] "
|
||||
"[-t chrootdir] [-d device] [-m mtu] [-z context] "
|
||||
"[-l ip address to listen on] [-p port] [-n external ip] [-b dnsport] [-P password] "
|
||||
|
@ -2342,7 +2342,7 @@ main(int argc, char **argv)
|
|||
|
||||
#ifdef LINUX
|
||||
while ((choice = getopt(argc, argv, "6vcsfhDu:t:d:m:l:p:n:b:P:z:F:")) != -1) {
|
||||
#elif
|
||||
#else
|
||||
while ((choice = getopt(argc, argv, "vcsfhDu:t:d:m:l:p:n:b:P:z:F:")) != -1) {
|
||||
#endif
|
||||
switch(choice) {
|
||||
|
@ -2420,7 +2420,7 @@ main(int argc, char **argv)
|
|||
|
||||
#ifdef LINUX
|
||||
if (argc != 2 + v6)
|
||||
#elif
|
||||
#else
|
||||
if (argc != 2)
|
||||
#endif
|
||||
usage();
|
||||
|
@ -2471,7 +2471,7 @@ main(int argc, char **argv)
|
|||
|
||||
#ifdef LINUX
|
||||
topdomain = strdup(argv[1 + v6]);
|
||||
#elif
|
||||
#else
|
||||
topdomain = strdup(argv[1]);
|
||||
#endif
|
||||
if (strlen(topdomain) <= 128) {
|
||||
|
|
|
@ -40,7 +40,7 @@ unsigned usercount;
|
|||
int
|
||||
#ifdef LINUX
|
||||
init_users(in_addr_t my_ip, int netbits, struct in6_addr my_net6)
|
||||
#elif
|
||||
#else
|
||||
init_users(in_addr_t my_ip, int netbits)
|
||||
#endif
|
||||
{
|
||||
|
|
|
@ -81,7 +81,7 @@ extern struct user *users;
|
|||
|
||||
#ifdef LINUX
|
||||
int init_users(in_addr_t my_ip, int netbits, struct in6_addr my_net6);
|
||||
#elif
|
||||
#else
|
||||
int init_users(in_addr_t my_ip, int netbits);
|
||||
#endif
|
||||
const char* users_get_first_ip();
|
||||
|
|
Loading…
Add table
Reference in a new issue