diff options
Diffstat (limited to 'misc.c')
-rw-r--r-- | misc.c | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -164,13 +164,10 @@ socket_rdomain(int domain, int type, int protocol, int rdomain) | |||
164 | return (sock); | 164 | return (sock); |
165 | 165 | ||
166 | switch (domain) { | 166 | switch (domain) { |
167 | #ifdef IPPROTO_IPV6 | ||
168 | case AF_INET6: | 167 | case AF_INET6: |
169 | ipproto = IPPROTO_IPV6; | 168 | ipproto = IPPROTO_IPV6; |
170 | /* FALLTHROUGH */ | 169 | /* FALLTHROUGH */ |
171 | #endif | ||
172 | case AF_INET: | 170 | case AF_INET: |
173 | #ifdef USE_ROUTINGDOMAIN | ||
174 | debug2("socket %d af %d setting rdomain %d", | 171 | debug2("socket %d af %d setting rdomain %d", |
175 | sock, domain, rdomain); | 172 | sock, domain, rdomain); |
176 | if (setsockopt(sock, ipproto, SO_RDOMAIN, &rdomain, | 173 | if (setsockopt(sock, ipproto, SO_RDOMAIN, &rdomain, |
@@ -180,7 +177,6 @@ socket_rdomain(int domain, int type, int protocol, int rdomain) | |||
180 | close(sock); | 177 | close(sock); |
181 | return (-1); | 178 | return (-1); |
182 | } | 179 | } |
183 | #endif | ||
184 | break; | 180 | break; |
185 | default: | 181 | default: |
186 | debug("socket %d af %d does not support rdomain %d", | 182 | debug("socket %d af %d does not support rdomain %d", |
@@ -277,7 +273,6 @@ a2port(const char *s) | |||
277 | return (int)port; | 273 | return (int)port; |
278 | } | 274 | } |
279 | 275 | ||
280 | #ifdef USE_ROUTINGDOMAIN | ||
281 | int | 276 | int |
282 | a2rdomain(const char *s) | 277 | a2rdomain(const char *s) |
283 | { | 278 | { |
@@ -289,7 +284,6 @@ a2rdomain(const char *s) | |||
289 | return -1; | 284 | return -1; |
290 | return (int)rdomain; | 285 | return (int)rdomain; |
291 | } | 286 | } |
292 | #endif | ||
293 | 287 | ||
294 | int | 288 | int |
295 | a2tun(const char *s, int *remote) | 289 | a2tun(const char *s, int *remote) |