From 3a385d0d6fd08c7ff6b48360a3647d65d9195c91 Mon Sep 17 00:00:00 2001 From: mpi Date: Thu, 4 Jun 2015 09:51:15 +0000 Subject: [PATCH] Remove unused sa_dl. --- sys/netinet6/nd6_rtr.c | 6 +----- 1 file changed, 1 insertion(+), 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)) -- 2.20.1