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

Lines Matching refs:ip6

124 #include <netinet/ip6.h>
244 ip6_mutex_grp = lck_grp_alloc_init("ip6", ip6_mutex_grp_attr);
358 struct ip6_hdr *ip6;
373 ip6 = mtod(m, struct ip6_hdr *);
374 nxt = ip6->ip6_nxt;
467 ip6 = mtod(m, struct ip6_hdr *);
469 if ((ip6->ip6_vfc & IPV6_VERSION_MASK) != IPV6_VERSION) {
475 ip6stat.ip6s_nxthist[ip6->ip6_nxt]++;
484 if ((*ip6_fw_chk_ptr)(&ip6, NULL, &port, &m)) {
497 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_src) ||
498 IN6_IS_ADDR_UNSPECIFIED(&ip6->ip6_dst)) {
506 if ((IN6_IS_ADDR_LOOPBACK(&ip6->ip6_src) ||
507 IN6_IS_ADDR_LOOPBACK(&ip6->ip6_dst)) &&
526 if (IN6_IS_ADDR_V4MAPPED(&ip6->ip6_src) ||
527 IN6_IS_ADDR_V4MAPPED(&ip6->ip6_dst)) {
540 if (IN6_IS_ADDR_V4COMPAT(&ip6->ip6_src) ||
541 IN6_IS_ADDR_V4COMPAT(&ip6->ip6_dst)) {
550 if (IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_src) &&
551 ip6->ip6_src.s6_addr16[1]) {
555 if (IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_dst) &&
556 ip6->ip6_dst.s6_addr16[1]) {
562 if (IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_src))
563 ip6->ip6_src.s6_addr16[1]
565 if (IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_dst))
566 ip6->ip6_dst.s6_addr16[1]
580 IN6_IS_ADDR_LINKLOCAL(&ip6->ip6_dst)) {
582 if (!(ia6 = in6ifa_ifpwithaddr(m->m_pkthdr.rcvif, &ip6->ip6_dst))) {
600 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) {
608 IN6_LOOKUP_MULTI(ip6->ip6_dst, m->m_pkthdr.rcvif, in6m);
626 IN6_ARE_ADDR_EQUAL(&ip6->ip6_dst,
643 dst6->sin6_addr = ip6->ip6_dst;
646 in6_addr2scopeid(m->m_pkthdr.rcvif, &ip6->ip6_dst);
689 IN6_ARE_ADDR_EQUAL(&ip6->ip6_dst,
720 ip6_sprintf(&ip6->ip6_src),
721 ip6_sprintf(&ip6->ip6_dst)));
761 ia6 = in6_ifawithifp(deliverifp, &ip6->ip6_dst);
778 plen = (u_int32_t)ntohs(ip6->ip6_plen);
779 if (ip6->ip6_nxt == IPPROTO_HOPOPTS) {
791 ip6 = mtod(m, struct ip6_hdr *);
798 if (ip6->ip6_plen == 0 && plen == 0) {
810 (caddr_t)&ip6->ip6_plen - (caddr_t)ip6);
815 hbh = (struct ip6_hbh *)(ip6 + 1);
834 nxt = ip6->ip6_nxt;
858 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) {
867 if (ip6_mrouter && ip6_mforward(ip6, m->m_pkthdr.rcvif, m)) {
884 ip6 = mtod(m, struct ip6_hdr *);
895 if (IN6_IS_ADDR_V4MAPPED(&ip6->ip6_src) ||
896 IN6_IS_ADDR_V4MAPPED(&ip6->ip6_dst)) {
1101 struct ip6_hdr *ip6;
1160 ip6 = mtod(m, struct ip6_hdr *);
1161 if (ip6->ip6_plen) {
1249 struct ip6_hdr *ip6;
1267 ip6 = mtod(m, struct ip6_hdr *);
1268 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst) ||
1297 ip6_savecontrol(in6p, mp, ip6, m)
1300 struct ip6_hdr *ip6;
1319 if ((ip6->ip6_vfc & IPV6_VERSION_MASK) != IPV6_VERSION)
1325 bcopy(&ip6->ip6_dst, &pi6.ipi6_addr, sizeof(struct in6_addr));
1339 int hlim = ip6->ip6_hlim & 0xff;
1361 ip6 = mtod(m, struct ip6_hdr *);
1362 if (ip6->ip6_nxt == IPPROTO_HOPOPTS) {
1370 hbh = (struct ip6_hbh *)(ip6 + 1);
1374 ip6->ip6_nxt);
1437 ip6 = mtod(m, struct ip6_hdr *);
1438 int nxt = ip6->ip6_nxt, off = sizeof(struct ip6_hdr);
1623 struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
1626 return((char *) &ip6->ip6_nxt);
1631 nxt = ip6->ip6_nxt;
1666 struct ip6_hdr ip6;
1678 if (m->m_pkthdr.len < off + sizeof(ip6))
1680 m_copydata(m, off, sizeof(ip6), (caddr_t)&ip6);
1682 *nxtp = ip6.ip6_nxt;
1683 off += sizeof(ip6);