summaryrefslogtreecommitdiffstats
path: root/sbin/route
diff options
context:
space:
mode:
authorhrs <hrs@FreeBSD.org>2012-12-05 19:45:24 +0000
committerhrs <hrs@FreeBSD.org>2012-12-05 19:45:24 +0000
commit377b89c55f75aba70c2c66bfc96fb4c4af7311ae (patch)
tree54a3401d4d89d95ebe41cab5790300d24c5a6268 /sbin/route
parentefc06bd8013ad630fe9083f423265d89b9d717ff (diff)
downloadFreeBSD-src-377b89c55f75aba70c2c66bfc96fb4c4af7311ae.zip
FreeBSD-src-377b89c55f75aba70c2c66bfc96fb4c4af7311ae.tar.gz
- Move definition of V_deembed_scopeid to scope6_var.h.
- Deembed scope id in L3 address in in6_lltable_dump(). - Simplify scope id recovery in rtsock routines. - Remove embedded scope id handling in ndp(8) and route(8) completely.
Diffstat (limited to 'sbin/route')
-rw-r--r--sbin/route/route.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/sbin/route/route.c b/sbin/route/route.c
index 809dc9f..be85184 100644
--- a/sbin/route/route.c
+++ b/sbin/route/route.c
@@ -1215,16 +1215,6 @@ getaddr(int which, char *str, struct hostent **hpp)
exit(1);
}
memcpy(&su->sin6, res->ai_addr, sizeof(su->sin6));
-#ifdef __KAME__
- if ((IN6_IS_ADDR_LINKLOCAL(&su->sin6.sin6_addr) ||
- IN6_IS_ADDR_MC_LINKLOCAL(&su->sin6.sin6_addr) ||
- IN6_IS_ADDR_MC_NODELOCAL(&su->sin6.sin6_addr)) &&
- su->sin6.sin6_scope_id) {
- *(u_int16_t *)&su->sin6.sin6_addr.s6_addr[2] =
- htons(su->sin6.sin6_scope_id);
- su->sin6.sin6_scope_id = 0;
- }
-#endif
freeaddrinfo(res);
if (q != NULL)
*q++ = '/';
OpenPOWER on IntegriCloud