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
This commit is contained in:
parent
964efc6482
commit
4081472216
@ -2367,7 +2367,7 @@ in6_lltable_dump_entry(struct lltable *llt, struct llentry *lle,
|
|||||||
sdl->sdl_alen = ifp->if_addrlen;
|
sdl->sdl_alen = ifp->if_addrlen;
|
||||||
sdl->sdl_index = ifp->if_index;
|
sdl->sdl_index = ifp->if_index;
|
||||||
sdl->sdl_type = ifp->if_type;
|
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)
|
if (lle->la_expire != 0)
|
||||||
ndpc.rtm.rtm_rmx.rmx_expire = lle->la_expire +
|
ndpc.rtm.rtm_rmx.rmx_expire = lle->la_expire +
|
||||||
lle->lle_remtime / hz +
|
lle->lle_remtime / hz +
|
||||||
|
Loading…
Reference in New Issue
Block a user