Changeset 55cfed
- Timestamp:
- 09/20/09 17:11:15 (3 years ago)
- Branches:
- master
- Children:
- 401674
- Parents:
- 2c2dd6
- git-author:
- J. A. Bezemer <J.A.Bezemer@…> (09/20/09 17:11:15)
- git-committer:
- Erik Ekman <erik@…> (02/04/12 20:34:03)
- Location:
- src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/client.h
ra1a2e3 r55cfed 27 27 void client_set_topdomain(const char *cp); 28 28 void client_set_password(const char *cp); 29 void set_qtype(char *qtype); 30 void set_downenc(char *encoding); 29 31 30 32 int client_handshake(int dns_fd, int raw_mode, int autodetect_frag_size, int fragsize); -
src/iodine.c
ra1a2e3 r55cfed 62 62 63 63 fprintf(stderr, "Usage: %s [-v] [-h] [-f] [-r] [-u user] [-t chrootdir] [-d device] " 64 "[-P password] [-m maxfragsize] [- z context] [-F pidfile] "64 "[-P password] [-m maxfragsize] [-T type] [-O enc] [-z context] [-F pidfile] " 65 65 "[nameserver] topdomain\n", __progname); 66 66 exit(2); … … 73 73 fprintf(stderr, "iodine IP over DNS tunneling client\n"); 74 74 fprintf(stderr, "Usage: %s [-v] [-h] [-f] [-r] [-u user] [-t chrootdir] [-d device] " 75 "[-P password] [-m maxfragsize] [- z context] [-F pidfile] "75 "[-P password] [-m maxfragsize] [-T type] [-O enc] [-z context] [-F pidfile] " 76 76 "[nameserver] topdomain\n", __progname); 77 77 fprintf(stderr, " -v to print version info and exit\n"); … … 84 84 fprintf(stderr, " -P password used for authentication (max 32 chars will be used)\n"); 85 85 fprintf(stderr, " -m maxfragsize, to limit size of downstream packets\n"); 86 fprintf(stderr, " -T dns type: NULL (default, fastest), TXT, CNAME, A (CNAME answer), MX\n"); 87 fprintf(stderr, " -O downstream encoding (!NULL): Base32(default), Base64, or Raw (only TXT)\n"); 86 88 fprintf(stderr, " -z context, to apply specified SELinux context after initialization\n"); 87 89 fprintf(stderr, " -F pidfile to write pid to a file\n"); … … 134 136 username = NULL; 135 137 memset(password, 0, 33); 138 srand(time(NULL)); 136 139 foreground = 0; 137 140 newroot = NULL; … … 160 163 #endif 161 164 162 while ((choice = getopt(argc, argv, "vfhru:t:d:P:m:F: ")) != -1) {165 while ((choice = getopt(argc, argv, "vfhru:t:d:P:m:F:T:O:")) != -1) { 163 166 switch(choice) { 164 167 case 'v': … … 201 204 pidfile = optarg; 202 205 break; 206 case 'T': 207 set_qtype(optarg); 208 break; 209 case 'O': /* not -D, is Debug in server */ 210 set_downenc(optarg); 211 break; 203 212 default: 204 213 usage(); … … 235 244 client_set_nameserver(nameserv_addr, DNS_PORT); 236 245 } else { 246 warnx("No nameserver found - not connected to any network?\n"); 237 247 usage(); 238 248 /* NOTREACHED */
Note: See TracChangeset
for help on using the changeset viewer.
