dstifp is never used.

ok?

Index: netinet6/frag6.c
===================================================================
RCS file: /cvs/src/sys/netinet6/frag6.c,v
retrieving revision 1.64
diff -u -p -r1.64 frag6.c
--- netinet6/frag6.c    19 Oct 2015 11:59:26 -0000      1.64
+++ netinet6/frag6.c    21 Oct 2015 08:10:41 -0000
@@ -164,30 +164,12 @@ frag6_input(struct mbuf **mp, int *offp,
        int offset = *offp, nxt, i, next;
        int first_frag = 0;
        int fragoff, frgpartlen;        /* must be larger than u_int16_t */
-       struct ifnet *dstifp;
-       struct sockaddr_in6 dst;
-       struct rtentry *rt;
        u_int8_t ecn, ecn0;
 
        ip6 = mtod(m, struct ip6_hdr *);
        IP6_EXTHDR_GET(ip6f, struct ip6_frag *, m, offset, sizeof(*ip6f));
        if (ip6f == NULL)
                return IPPROTO_DONE;
-
-       dstifp = NULL;
-       /* find the destination interface of the packet. */
-       memset(&dst, 0, sizeof(dst));
-       dst.sin6_family = AF_INET6;
-       dst.sin6_len = sizeof(struct sockaddr_in6);
-       dst.sin6_addr = ip6->ip6_dst;
-
-       rt = rtalloc_mpath(sin6tosa(&dst), &ip6->ip6_src.s6_addr32[0],
-           m->m_pkthdr.ph_rtableid);
-       if (rt != NULL) {
-               dstifp = ifatoia6(rt->rt_ifa)->ia_ifp;
-               rtfree(rt);
-               rt = NULL;
-       }
 
        /* jumbo payload can't contain a fragment header */
        if (ip6->ip6_plen == 0) {

Reply via email to