diff options
author | Darren Tucker <dtucker@zip.com.au> | 2010-01-08 19:53:52 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2010-01-08 19:53:52 +1100 |
commit | 1f5e3dc274fe4616435ff451b5216b5bde217c0d (patch) | |
tree | 345cdb5f89e533e8871de0b8527b6cb45cbf9d46 /misc.c | |
parent | e67f7db968e376c9971dd3a4d4ab3fae4a06bf78 (diff) |
- (dtucker) [configure.ac misc.c readconf.c servconf.c ssh-keyscan.c] Make
RoutingDomain an unsupported option on platforms that don't have it.
Diffstat (limited to 'misc.c')
-rw-r--r-- | misc.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -155,6 +155,7 @@ set_nodelay(int fd) | |||
155 | int | 155 | int |
156 | socket_rdomain(int domain, int type, int protocol, int rdomain) | 156 | socket_rdomain(int domain, int type, int protocol, int rdomain) |
157 | { | 157 | { |
158 | #ifdef USE_ROUTINGDOMAIN | ||
158 | int sock, ipproto = IPPROTO_IP; | 159 | int sock, ipproto = IPPROTO_IP; |
159 | 160 | ||
160 | if ((sock = socket(domain, type, protocol)) == -1) | 161 | if ((sock = socket(domain, type, protocol)) == -1) |
@@ -186,6 +187,7 @@ socket_rdomain(int domain, int type, int protocol, int rdomain) | |||
186 | } | 187 | } |
187 | 188 | ||
188 | return (sock); | 189 | return (sock); |
190 | #endif | ||
189 | } | 191 | } |
190 | 192 | ||
191 | /* Characters considered whitespace in strsep calls. */ | 193 | /* Characters considered whitespace in strsep calls. */ |
@@ -273,6 +275,7 @@ a2port(const char *s) | |||
273 | return (int)port; | 275 | return (int)port; |
274 | } | 276 | } |
275 | 277 | ||
278 | #ifdef USE_ROUTINGDOMAIN | ||
276 | int | 279 | int |
277 | a2rdomain(const char *s) | 280 | a2rdomain(const char *s) |
278 | { | 281 | { |
@@ -284,6 +287,7 @@ a2rdomain(const char *s) | |||
284 | return -1; | 287 | return -1; |
285 | return (int)rdomain; | 288 | return (int)rdomain; |
286 | } | 289 | } |
290 | #endif | ||
287 | 291 | ||
288 | int | 292 | int |
289 | a2tun(const char *s, int *remote) | 293 | a2tun(const char *s, int *remote) |