Author: markj
Date: Wed Mar 30 00:03:59 2016
New Revision: 297403
URL: https://svnweb.freebsd.org/changeset/base/297403

Log:
  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

Modified:
  head/sys/netinet6/in6.c

Modified: head/sys/netinet6/in6.c
==============================================================================
--- head/sys/netinet6/in6.c     Tue Mar 29 23:33:44 2016        (r297402)
+++ head/sys/netinet6/in6.c     Wed Mar 30 00:03:59 2016        (r297403)
@@ -2367,7 +2367,7 @@ in6_lltable_dump_entry(struct lltable *l
                        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 +
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to