• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.5.8/xnu-1228.15.4/bsd/netinet6/

Lines Matching refs:ip6

94 #include <netinet/ip6.h>
171 struct ip6_hdr *ip6, *mhip6;
203 ip6 = mtod(m, struct ip6_hdr *);
305 ip6 = mtod(m, struct ip6_hdr *);
309 plen = m->m_pkthdr.len - sizeof(*ip6);
322 ip6 = mtod(m, struct ip6_hdr *);
325 ip6->ip6_plen = 0;
327 ip6->ip6_plen = htons(plen);
340 u_char *nexthdrp = &ip6->ip6_nxt;
356 *mtod(exthdrs.ip6e_dest2, u_char *) = ip6->ip6_nxt;
357 ip6->ip6_nxt = IPPROTO_DSTOPTS;
391 if (im6o != NULL && IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) {
400 if (IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_dst) &&
401 (ip6->ip6_dst.s6_addr16[1] == 0) && (ro != NULL)) {
403 ip6->ip6_dst.s6_addr16[1] = htons(ro->ro_dst.sin6_scope_id);
435 ip6 = mtod(m, struct ip6_hdr *);
438 ip6->ip6_dst.s6_addr16[1] = 0;
509 finaldst = ip6->ip6_dst;
513 ip6->ip6_dst = rh0->ip6r0_addr[0];
527 if (IN6_IS_ADDR_UNSPECIFIED(&ip6->ip6_src) &&
533 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_src)) {
559 !IN6_ARE_ADDR_EQUAL(&dst->sin6_addr, &ip6->ip6_dst) ||
568 dst->sin6_addr = ip6->ip6_dst;
629 if (!IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) {
683 ip6->ip6_hlim = opt->ip6po_hlim & 0xff;
695 ip6->ip6_hlim = im6o->im6o_multicast_hlim;
699 ip6->ip6_hlim = ip6_defmcasthlim;
713 if (IN6_IS_ADDR_MC_NODELOCAL(&ip6->ip6_dst)) {
730 ip6->ip6_hlim = opt->ip6po_hlim & 0xff;
772 IN6_LOOKUP_MULTI(ip6->ip6_dst, ifp, in6m);
796 if (ip6_mforward(ip6, ifp, m) != 0) {
810 if (ip6->ip6_hlim == 0 || (ifp->if_flags & IFF_LOOPBACK)) {
892 if (IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_src))
893 origifp = ifindex2ifnet[ntohs(ip6->ip6_src.s6_addr16[1])];
894 else if (IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_dst))
895 origifp = ifindex2ifnet[ntohs(ip6->ip6_dst.s6_addr16[1])];
918 in6_clearscope(&ip6->ip6_src);
919 in6_clearscope(&ip6->ip6_dst);
929 if (ip6_fw_chk_ptr(&ip6, ifp, &port, &m)) {
1017 } else if (ip6->ip6_plen == 0) { /* jumbo payload cannot be fragmented */
1059 nextproto = ip6->ip6_nxt;
1060 ip6->ip6_nxt = IPPROTO_FRAGMENT;
1082 *mhip6 = *ip6;
2653 struct ip6_hdr *ip6;
2672 if (copym->m_len < sizeof(*ip6)) {
2678 ip6 = mtod(copym, struct ip6_hdr *);
2684 in6_clearscope(&ip6->ip6_src);
2685 in6_clearscope(&ip6->ip6_dst);
2717 struct ip6_hdr *ip6;
2719 ip6 = mtod(m, struct ip6_hdr *);
2720 if (m->m_len > sizeof(*ip6)) {
2727 MH_ALIGN(mh, sizeof(*ip6));
2729 m->m_len -= sizeof(*ip6);
2730 m->m_data += sizeof(*ip6);
2733 m->m_len = sizeof(*ip6);
2734 bcopy((caddr_t)ip6, mtod(m, caddr_t), sizeof(*ip6));