summaryrefslogtreecommitdiffstats
path: root/sys/netinet6
diff options
context:
space:
mode:
authormarkj <markj@FreeBSD.org>2016-03-30 00:03:59 +0000
committermarkj <markj@FreeBSD.org>2016-03-30 00:03:59 +0000
commit4081472216bb2faccbd9f119e36c664b62a660c4 (patch)
tree5f5bea4b63a1ac215fbf09f413ecf0c4494dbf40 /sys/netinet6
parent964efc6482c099f270278cab2ec5eaa979a472ca (diff)
downloadFreeBSD-src-4081472216bb2faccbd9f119e36c664b62a660c4.zip
FreeBSD-src-4081472216bb2faccbd9f119e36c664b62a660c4.tar.gz
Fix the lladdr copy in in6_lltable_dump_entry() after r292978.
This bug caused "ndp -a" to show the wrong link layer address for neighbour cache entries. PR: 208067
Diffstat (limited to 'sys/netinet6')
-rw-r--r--sys/netinet6/in6.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet6/in6.c b/sys/netinet6/in6.c
index 393bb7e..797093a 100644
--- a/sys/netinet6/in6.c
+++ b/sys/netinet6/in6.c
@@ -2367,7 +2367,7 @@ in6_lltable_dump_entry(struct lltable *llt, struct llentry *lle,
sdl->sdl_alen = ifp->if_addrlen;
sdl->sdl_index = ifp->if_index;
sdl->sdl_type = ifp->if_type;
- bcopy(&lle->ll_addr, LLADDR(sdl), ifp->if_addrlen);
+ bcopy(lle->ll_addr, LLADDR(sdl), ifp->if_addrlen);
if (lle->la_expire != 0)
ndpc.rtm.rtm_rmx.rmx_expire = lle->la_expire +
lle->lle_remtime / hz +
OpenPOWER on IntegriCloud