summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2010-01-10 10:26:57 +1100
committerDarren Tucker <dtucker@zip.com.au>2010-01-10 10:26:57 +1100
commit8c65f646a93ed2f61da65ba0ecf65a99bd585b79 (patch)
tree40d5451fe48c9ef98525bdefd6a672a7484ac6de /misc.c
parent269275c90cd2ffda85f32114bfaeff978298e346 (diff)
- (dtucker) [configure.ac misc.c readconf.c servconf.c ssh-keyscan.c]
Remove hacks add for RoutingDomain in preparation for its removal.
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/misc.c b/misc.c
index b260d89fe..550b03cad 100644
--- a/misc.c
+++ b/misc.c
@@ -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
281int 276int
282a2rdomain(const char *s) 277a2rdomain(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
294int 288int
295a2tun(const char *s, int *remote) 289a2tun(const char *s, int *remote)