Changeset d4849a
- Timestamp:
- 11/25/10 19:07:59 (18 months ago)
- Branches:
- master
- Children:
- 66d942
- Parents:
- 9c3343
- git-author:
- Laurent Ghigonis <laurent@…> (11/25/10 19:07:59)
- git-committer:
- Erik Ekman <erik@…> (02/04/12 20:34:05)
- Files:
-
- 5 edited
-
CHANGELOG (modified) (1 diff)
-
man/iodine.8 (modified) (2 diffs)
-
src/iodine.c (modified) (4 diffs)
-
src/util.c (modified) (1 diff)
-
src/util.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
CHANGELOG
r9c3343 rd4849a 34 34 - Handle spaces when entering password interactively, fixes #93. 35 35 Patch by Hagar. 36 - Add -R option to set OpenBSD routing domain for the DNS socket. 37 Patch by laurent at gouloum fr, fixes #95. 36 38 37 39 2009-06-01: 0.5.2 "WifiFree" -
man/iodine.8
ra96e7d rd4849a 18 18 .B ] [-d 19 19 .I device 20 .B ] [-R 21 .I rdomain 20 22 .B ] [-m 21 23 .I fragsize … … 129 131 of the iodined host and test if it is reachable directly. If it is, traffic 130 132 will be sent to the server instead of the DNS relay. 133 .TP 134 .B -R rdomain 135 Use OpenBSD routing domain 'rdomain' for the DNS connection. 131 136 .TP 132 137 .B -m fragsize -
src/iodine.c
rb17790 rd4849a 137 137 int selecttimeout; 138 138 int hostname_maxlen; 139 int rtable = 0; 139 140 140 141 nameserv_addr = NULL; … … 175 176 #endif 176 177 177 while ((choice = getopt(argc, argv, "vfhru:t:d: P:m:M:F:T:O:L:I:")) != -1) {178 while ((choice = getopt(argc, argv, "vfhru:t:d:R:P:m:M:F:T:O:L:I:")) != -1) { 178 179 switch(choice) { 179 180 case 'v': … … 198 199 case 'd': 199 200 device = optarg; 201 break; 202 case 'R': 203 rtable = atoi(optarg); 200 204 break; 201 205 case 'P': … … 326 330 goto cleanup2; 327 331 } 332 #ifdef OPENBSD 333 if (rtable > 0) 334 socket_setrtable(dns_fd, rtable); 335 #endif 328 336 329 337 signal(SIGINT, sighandler); -
src/util.c
r2c2dd6 rd4849a 68 68 } 69 69 70 #ifdef OPENBSD 71 void 72 socket_setrtable(int fd, int rtable) 73 { 74 if (setsockopt (fd, IPPROTO_IP, SO_RTABLE, &rtable, sizeof(rtable)) == -1) 75 err(1, "Failed to set routing table %d", rtable); 76 } 77 #endif -
src/util.h
r27fdc2 rd4849a 3 3 4 4 char *get_resolvconf_addr(); 5 void socket_setrtable(int fd, int rtable); 5 6 6 7 #endif
Note: See TracChangeset
for help on using the changeset viewer.
