diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-06-04 09:51:16 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-06-04 09:51:16 +0000 |
commit | 4d710c395c58bda9fbd62bb57cabf8c2587503ab (patch) | |
tree | f1a8ac7a0c9115c98eb23844a0456217cda53bb0 /sys/netinet6/nd6_rtr.c | |
parent | f6abee889b56baa717720691e2e42c84a38ab892 (diff) |
Remove unused sa_dl.
Diffstat (limited to 'sys/netinet6/nd6_rtr.c')
-rw-r--r-- | sys/netinet6/nd6_rtr.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/netinet6/nd6_rtr.c b/sys/netinet6/nd6_rtr.c index deb7ff826d0..aacbb4b194d 100644 --- a/sys/netinet6/nd6_rtr.c +++ b/sys/netinet6/nd6_rtr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nd6_rtr.c,v 1.104 2015/05/26 12:19:52 mpi Exp $ */ +/* $OpenBSD: nd6_rtr.c,v 1.105 2015/06/04 09:51:15 mpi Exp $ */ /* $KAME: nd6_rtr.c,v 1.97 2001/02/07 11:09:13 itojun Exp $ */ /* @@ -1652,7 +1652,6 @@ nd6_prefix_onlink(struct nd_prefix *pr) struct ifaddr *ifa; struct ifnet *ifp = pr->ndpr_ifp; struct sockaddr_in6 mask6; - struct sockaddr_dl sa_dl = { sizeof(sa_dl), AF_LINK }; struct nd_prefix *opr; u_long rtflags; int error = 0; @@ -1726,9 +1725,6 @@ nd6_prefix_onlink(struct nd_prefix *pr) mask6.sin6_len = sizeof(mask6); mask6.sin6_addr = pr->ndpr_mask; - sa_dl.sdl_type = ifp->if_type; - sa_dl.sdl_index = ifp->if_index; - /* rtrequest1() will probably set RTF_UP, but we're not sure. */ rtflags = RTF_UP; if (nd6_need_cache(ifp)) |