]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/netinet6/dest6.c
xnu-3789.70.16.tar.gz
[apple/xnu.git] / bsd / netinet6 / dest6.c
index 993ee1a91072af1bbcf22dad7259554374cc80fe..4feef21cb000fff63c0f1452f3a7c5f29df879c6 100644 (file)
@@ -63,24 +63,12 @@ dest6_input(struct mbuf **mp, int *offp, int proto)
        u_int8_t *opt;
 
        /* validation of the length of the header */
-#ifndef PULLDOWN_TEST
        IP6_EXTHDR_CHECK(m, off, sizeof(*dstopts), return IPPROTO_DONE);
        dstopts = (struct ip6_dest *)(mtod(m, caddr_t) + off);
-#else
-       IP6_EXTHDR_GET(dstopts, struct ip6_dest *, m, off, sizeof(*dstopts));
-       if (dstopts == NULL)
-               return IPPROTO_DONE;
-#endif
        dstoptlen = (dstopts->ip6d_len + 1) << 3;
 
-#ifndef PULLDOWN_TEST
        IP6_EXTHDR_CHECK(m, off, dstoptlen, return IPPROTO_DONE);
        dstopts = (struct ip6_dest *)(mtod(m, caddr_t) + off);
-#else
-       IP6_EXTHDR_GET(dstopts, struct ip6_dest *, m, off, dstoptlen);
-       if (dstopts == NULL)
-               return IPPROTO_DONE;
-#endif
        off += dstoptlen;
        dstoptlen -= sizeof(struct ip6_dest);
        opt = (u_int8_t *)dstopts + sizeof(struct ip6_dest);