Lines Matching refs:ip6

131 #include <netinet/ip6.h>
313 PE_parse_boot_argn("net.inet6.ip6.scopedroute", &ip6_doscopedroute,
335 ip6_mutex_grp = lck_grp_alloc_init("ip6", ip6_mutex_grp_attr);
474 struct ip6_hdr *ip6;
515 ip6 = mtod(m, struct ip6_hdr *); /* In case PF got disabled */
527 ip6 = mtod(m, struct ip6_hdr *);
528 nxt = ip6->ip6_nxt;
629 ip6 = mtod(m, struct ip6_hdr *);
631 if ((ip6->ip6_vfc & IPV6_VERSION_MASK) != IPV6_VERSION) {
637 ip6stat.ip6s_nxthist[ip6->ip6_nxt]++;
647 if ((*ip6_fw_chk_ptr)(&ip6, NULL, &port, &m)) {
659 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_src) ||
660 IN6_IS_ADDR_UNSPECIFIED(&ip6->ip6_dst)) {
668 if (IN6_IS_ADDR_MC_INTFACELOCAL(&ip6->ip6_dst) &&
693 if (IN6_IS_ADDR_V4MAPPED(&ip6->ip6_src) ||
694 IN6_IS_ADDR_V4MAPPED(&ip6->ip6_dst)) {
707 if (IN6_IS_ADDR_V4COMPAT(&ip6->ip6_src) ||
708 IN6_IS_ADDR_V4COMPAT(&ip6->ip6_dst)) {
729 &ip6->ip6_src);
756 ip6 = mtod(m, struct ip6_hdr *);
762 if (IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_src) &&
763 ip6->ip6_src.s6_addr16[1]) {
767 if (IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_dst) &&
768 ip6->ip6_dst.s6_addr16[1]) {
774 if (IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_src))
775 ip6->ip6_src.s6_addr16[1]
777 if (IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_dst))
778 ip6->ip6_dst.s6_addr16[1]
784 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) {
794 IN6_LOOKUP_MULTI(&ip6->ip6_dst, ifp, in6m);
819 dst6->sin6_addr = ip6->ip6_dst;
860 IN6_ARE_ADDR_EQUAL(&ip6->ip6_dst,
893 ip6_sprintf(&ip6->ip6_src),
894 ip6_sprintf(&ip6->ip6_dst)));
919 ia6 = in6_ifawithifp(deliverifp, &ip6->ip6_dst);
943 plen = (u_int32_t)ntohs(ip6->ip6_plen);
944 if (ip6->ip6_nxt == IPPROTO_HOPOPTS) {
955 ip6 = mtod(m, struct ip6_hdr *);
962 if (ip6->ip6_plen == 0 && plen == 0) {
973 (caddr_t)&ip6->ip6_plen - (caddr_t)ip6);
978 hbh = (struct ip6_hbh *)(ip6 + 1);
1010 nxt = ip6->ip6_nxt;
1034 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) {
1044 if (ip6_mrouter && ip6_mforward(ip6, m->m_pkthdr.rcvif, m)) {
1057 ours = nd6_prproxy_isours(m, ip6, NULL, IFSCOPE_NONE);
1084 ip6 = mtod(m, struct ip6_hdr *);
1095 if (IN6_IS_ADDR_V4MAPPED(&ip6->ip6_src) ||
1096 IN6_IS_ADDR_V4MAPPED(&ip6->ip6_dst)) {
1183 struct ip6_hdr *, ip6, struct ifnet *, m->m_pkthdr.rcvif,
1184 struct ip *, NULL, struct ip6_hdr *, ip6);
1309 struct ip6_hdr *ip6;
1364 ip6 = mtod(m, struct ip6_hdr *);
1365 if (ip6->ip6_plen) {
1442 struct ip6_hdr *ip6;
1456 ip6 = mtod(m, struct ip6_hdr *);
1457 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst) ||
1489 struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
1519 if ((ip6->ip6_vfc & IPV6_VERSION_MASK) != IPV6_VERSION) {
1530 bcopy(&ip6->ip6_dst, &pi6.ipi6_addr, sizeof(struct in6_addr));
1543 int hlim = ip6->ip6_hlim & 0xff;
1561 struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
1577 flowinfo = (u_int32_t)ntohl(ip6->ip6_flow & IPV6_FLOWINFO_MASK);
1602 ip6 = mtod(m, struct ip6_hdr *);
1603 if (ip6->ip6_nxt == IPPROTO_HOPOPTS) {
1611 hbh = (struct ip6_hbh *)(ip6 + 1);
1615 ip6->ip6_nxt);
1650 int nxt = ip6->ip6_nxt, off = sizeof(struct ip6_hdr);
1886 struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
1889 return((char *) &ip6->ip6_nxt);
1894 nxt = ip6->ip6_nxt;
1929 struct ip6_hdr ip6;
1941 if (m->m_pkthdr.len < off + sizeof(ip6))
1943 m_copydata(m, off, sizeof(ip6), (caddr_t)&ip6);
1945 *nxtp = ip6.ip6_nxt;
1946 off += sizeof(ip6);