Mercurial > dropbear
comparison svr-runopts.c @ 271:be18c7dd486e
Fix up #ifdefs for tcp forwarding
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 01 Feb 2006 09:05:13 +0000 |
parents | 306499676384 |
children | 973fccb59ea4 3bfbe95f9a14 0aaaf68e97dc |
comparison
equal
deleted
inserted
replaced
270:50da8d4b5acd | 271:be18c7dd486e |
---|---|
103 svr_opts.noauthpass = 0; | 103 svr_opts.noauthpass = 0; |
104 svr_opts.norootpass = 0; | 104 svr_opts.norootpass = 0; |
105 svr_opts.inetdmode = 0; | 105 svr_opts.inetdmode = 0; |
106 svr_opts.portcount = 0; | 106 svr_opts.portcount = 0; |
107 svr_opts.hostkey = NULL; | 107 svr_opts.hostkey = NULL; |
108 #ifdef ENABLE_SVR_LOCALTCPFWD | |
108 svr_opts.nolocaltcp = 0; | 109 svr_opts.nolocaltcp = 0; |
110 #endif | |
111 #ifdef ENABLE_SVR_REMOTETCPFWD | |
109 svr_opts.noremotetcp = 0; | 112 svr_opts.noremotetcp = 0; |
113 #endif | |
110 /* not yet | 114 /* not yet |
111 opts.ipv4 = 1; | 115 opts.ipv4 = 1; |
112 opts.ipv6 = 1; | 116 opts.ipv6 = 1; |
113 */ | 117 */ |
114 #ifdef DO_MOTD | 118 #ifdef DO_MOTD |
152 #ifndef DISABLE_SYSLOG | 156 #ifndef DISABLE_SYSLOG |
153 case 'E': | 157 case 'E': |
154 svr_opts.usingsyslog = 0; | 158 svr_opts.usingsyslog = 0; |
155 break; | 159 break; |
156 #endif | 160 #endif |
157 #ifndef DISABLE_LOCALTCPFWD | 161 #ifdef ENABLE_SVR_LOCALTCPFWD |
158 case 'j': | 162 case 'j': |
159 svr_opts.nolocaltcp = 1; | 163 svr_opts.nolocaltcp = 1; |
160 break; | 164 break; |
161 #endif | 165 #endif |
162 #ifndef DISABLE_REMOTETCPFWD | 166 #ifdef ENABLE_SVR_REMOTETCPFWD |
163 case 'k': | 167 case 'k': |
164 svr_opts.noremotetcp = 1; | 168 svr_opts.noremotetcp = 1; |
165 break; | 169 break; |
166 case 'a': | 170 case 'a': |
167 opts.listen_fwd_all = 1; | 171 opts.listen_fwd_all = 1; |