diff options
author | hrs <hrs@FreeBSD.org> | 2012-12-05 19:45:24 +0000 |
---|---|---|
committer | hrs <hrs@FreeBSD.org> | 2012-12-05 19:45:24 +0000 |
commit | 377b89c55f75aba70c2c66bfc96fb4c4af7311ae (patch) | |
tree | 54a3401d4d89d95ebe41cab5790300d24c5a6268 /sys/netinet6/in6.c | |
parent | efc06bd8013ad630fe9083f423265d89b9d717ff (diff) | |
download | FreeBSD-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 'sys/netinet6/in6.c')
-rw-r--r-- | sys/netinet6/in6.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netinet6/in6.c b/sys/netinet6/in6.c index 63b64ee..8da46cf 100644 --- a/sys/netinet6/in6.c +++ b/sys/netinet6/in6.c @@ -2669,6 +2669,8 @@ in6_lltable_dump(struct lltable *llt, struct sysctl_req *wr) ndpc.sin6.sin6_family = AF_INET6; ndpc.sin6.sin6_len = sizeof(ndpc.sin6); bcopy(L3_ADDR(lle), &ndpc.sin6, L3_ADDR_LEN(lle)); + if (V_deembed_scopeid) + sa6_recoverscope(&ndpc.sin6); /* publish */ if (lle->la_flags & LLE_PUB) |