/darwin-on-arm/xnu/bsd/netinet6/ |
H A D | route6.c | 74 #include <netinet/ip6.h> 88 struct ip6_hdr *ip6; local 110 ip6 = mtod(m, struct ip6_hdr *); 111 rh = (struct ip6_rthdr *)((caddr_t)ip6 + off); 116 ip6 = mtod(m, struct ip6_hdr *); 150 if (ip6_rthdr0(m, ip6, (struct ip6_rthdr0 *)rh)) 162 (caddr_t)&rh->ip6r_type - (caddr_t)ip6); 178 ip6_rthdr0(m, ip6, rh0) 180 struct ip6_hdr *ip6; 202 (caddr_t)&rh0->ip6r0_len - (caddr_t)ip6); [all...] |
H A D | in6_gif.c | 84 #include <netinet/ip6.h> 120 struct ip6_hdr *ip6; local 152 if (mbuf_len(m) < sizeof(*ip6)) { 153 m = m_pullup(m, sizeof(*ip6)); 157 ip6 = mtod(m, struct ip6_hdr *); 158 itos = (ntohl(ip6->ip6_flow) >> 20) & 0xff; 180 ip6 = mtod(m, struct ip6_hdr *); 181 ip6->ip6_flow = 0; 182 ip6->ip6_vfc &= ~IPV6_VERSION_MASK; 183 ip6 255 struct ip6_hdr *ip6; local 327 gif_validate6( const struct ip6_hdr *ip6, struct gif_softc *sc, struct ifnet *ifp) argument 392 struct ip6_hdr ip6; local [all...] |
H A D | ip6_forward.c | 83 #include <netinet/ip6.h> 125 struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *); local 190 IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst) || 191 IN6_IS_ADDR_UNSPECIFIED(&ip6->ip6_src)) { 199 ip6_sprintf(&ip6->ip6_src), 200 ip6_sprintf(&ip6->ip6_dst), 201 ip6->ip6_nxt, 208 if (ip6->ip6_hlim <= IPV6_HLIMDEC) { 222 VERIFY(!IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)); 223 proxy = nd6_prproxy_isours(m, ip6, ip6forward_r [all...] |
H A D | ip6_input.c | 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; local 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 1309 struct ip6_hdr *ip6; local 1442 struct ip6_hdr *ip6; local 1489 struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *); local 1561 struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *); local 1886 struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *); local 1929 struct ip6_hdr ip6; local [all...] |
H A D | frag6.c | 82 #include <netinet/ip6.h> 105 struct ip6q ip6q; /* ip6 reassemble queue */ 168 struct ip6_hdr *ip6; local 187 ip6 = mtod(m, struct ip6_hdr *); 190 ip6f = (struct ip6_frag *)((caddr_t)ip6 + offset); 204 dst->sin6_addr = ip6->ip6_dst; 224 if (ip6->ip6_plen == 0) { 239 (((ntohs(ip6->ip6_plen) - offset) & 0x7) != 0)) { 269 IN6_ARE_ADDR_EQUAL(&ip6->ip6_src, &q6->ip6q_src) && 270 IN6_ARE_ADDR_EQUAL(&ip6 661 struct ip6_hdr *ip6; local [all...] |
H A D | udp6_usrreq.c | 124 #include <netinet/ip6.h> 165 udp6_append(struct inpcb *last, __unused struct ip6_hdr *ip6, argument 208 register struct ip6_hdr *ip6; local 224 ip6 = mtod(m, struct ip6_hdr *); 228 plen = ntohs(ip6->ip6_plen) - off + sizeof(*ip6); 229 uh = (struct udphdr *)(void *)((caddr_t)ip6 + off); 281 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) { 357 if (imo && IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) { 365 mcaddr.sin6_addr = ip6 579 struct ip6_hdr *ip6; local [all...] |
H A D | ip6_mroute.c | 105 #include <netinet/ip6.h> 966 * pointed to by "ip6" has arrived on (or is about to be sent to) the interface 976 ip6_mforward(ip6, ifp, m) 977 struct ip6_hdr *ip6; 990 ip6_sprintf(&ip6->ip6_src), ip6_sprintf(&ip6->ip6_dst), 998 if (ip6->ip6_hlim <= 1 || IN6_IS_ADDR_MC_NODELOCAL(&ip6->ip6_dst) || 999 IN6_IS_ADDR_MC_LINKLOCAL(&ip6->ip6_dst)) 1001 ip6 1293 struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *); local 1684 struct ip6_hdr *ip6; local [all...] |
H A D | udp6_output.c | 125 #include <netinet/ip6.h> 176 struct ip6_hdr *ip6; local 342 ip6 = mtod(m, struct ip6_hdr *); 343 ip6->ip6_flow = in6p->in6p_flowinfo & IPV6_FLOWINFO_MASK; 344 ip6->ip6_vfc &= ~IPV6_VERSION_MASK; 345 ip6->ip6_vfc |= IPV6_VERSION; 347 ip6->ip6_plen = htons((u_short)plen); 349 ip6->ip6_nxt = IPPROTO_UDP; 350 ip6->ip6_hlim = in6_selecthlim(in6p, 353 ip6 [all...] |
H A D | ip6_fw.c | 110 #include <netinet/ip6.h> 186 static int ip6opts_match __P((struct ip6_hdr **ip6, struct ip6_fw *f, 193 static void ip6fw_report __P((struct ip6_fw *f, struct ip6_hdr *ip6, 276 is_icmp6_query(struct ip6_hdr *ip6, int off) argument 281 icmp6 = (struct icmp6_hdr *)((caddr_t)ip6 + off); 299 struct ip6_hdr *ip6 = *pip6; local 306 *nxt = ip6->ip6_nxt; 308 len = ntohs(ip6->ip6_plen) + sizeof(struct ip6_hdr); 310 ip6e = (struct ip6_ext *)((caddr_t) ip6 + *off); 319 ip6f = (struct ip6_frag *) ((caddr_t)ip6 417 ip6fw_report(struct ip6_fw *f, struct ip6_hdr *ip6, struct ifnet *rif, struct ifnet *oif, int off, int nxt) argument 563 struct ip6_hdr *ip6 = *pip6; local 840 struct ip6_hdr ip6; member in struct:__anon425 [all...] |
H A D | esp_input.c | 96 #include <netinet/ip6.h> 166 struct ip6_hdr *ip6; local 523 if (m->m_len < sizeof(*ip6)) { 524 m = m_pullup(m, sizeof(*ip6)); 537 ip6 = mtod(m, struct ip6_hdr *); 544 (caddr_t)&ip6->ip6_src, (caddr_t)&ip6->ip6_dst)) { 547 ipsec6_logpacketstr(ip6, spi), ipsec_logsastr(sav))); 557 ip6addr->sin6_addr = ip6->ip6_dst; 727 struct ip6_hdr *ip6; local 1196 struct ip6_hdr *ip6; local [all...] |
H A D | ah_input.c | 95 #include <netinet/ip6.h> 626 struct ip6_hdr *ip6; local 652 ip6 = mtod(m, struct ip6_hdr *); 658 if (ntohs(ip6->ip6_plen) == 0) { 666 (caddr_t)&ip6->ip6_src, (caddr_t)&ip6->ip6_dst, 713 ipsec6_logpacketstr(ip6, spi))); 721 ipsec6_logpacketstr(ip6, spi))); 750 ipsec6_logpacketstr(ip6, spi), 789 ipsec6_logpacketstr(ip6, sp 1033 struct ip6_hdr *ip6; local [all...] |
H A D | icmp6.c | 119 #include <netinet/ip6.h> 247 struct ip6_hdr *ip6; local 262 ip6 = mtod(m, struct ip6_hdr *); 264 if (in6_setscope(&ip6->ip6_src, ifp, NULL) != 0) 266 if (in6_setscope(&ip6->ip6_dst, ifp, NULL) != 0) 435 struct ip6_hdr *ip6, *nip6; local 455 ip6 = mtod(m, struct ip6_hdr *); 465 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) { 469 IN6_LOOKUP_MULTI(&ip6->ip6_dst, ifp, inm); 492 icmp6 = (struct icmp6_hdr *)((caddr_t)ip6 1266 struct ip6_hdr *ip6; local 2058 struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *); local 2171 struct ip6_hdr *ip6; local 2404 struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *); local 2626 struct ip6_hdr *ip6; /* m as struct ip6_hdr */ local [all...] |
H A D | nd6_nbr.c | 88 #include <netinet/ip6.h> 256 struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *); local 258 struct in6_addr saddr6 = ip6->ip6_src; 259 struct in6_addr daddr6 = ip6->ip6_dst; 281 nd_ns = (struct nd_neighbor_solicit *)((caddr_t)ip6 + off); 289 ip6 = mtod(m, struct ip6_hdr *); /* adjust pointer for safety */ 294 if (ip6->ip6_hlim != IPV6_MAXHLIM) { 297 ip6->ip6_hlim, ip6_sprintf(&ip6->ip6_src), 298 ip6_sprintf(&ip6 557 struct ip6_hdr *ip6; local 844 struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *); local 1271 struct ip6_hdr *ip6; local [all...] |
H A D | ip6_output.c | 127 #include <netinet/ip6.h> 281 struct ip6_hdr *ip6, *mhip6; local 342 ip6 = mtod(m, struct ip6_hdr *); 380 finaldst = ip6->ip6_dst; 408 ip6 = mtod(m, struct ip6_hdr *); 537 ip6 = mtod(m, struct ip6_hdr *); 541 plen = m->m_pkthdr.len - sizeof(*ip6); 554 ip6 = mtod(m, struct ip6_hdr *); 557 ip6->ip6_plen = 0; 559 ip6 3518 struct ip6_hdr *ip6; local 3583 struct ip6_hdr *ip6; local [all...] |
H A D | raw_ip6.c | 111 #include <netinet/ip6.h> 155 register struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *); local 177 !IN6_ARE_ADDR_EQUAL(&in6p->in6p_laddr, &ip6->ip6_dst)) 180 !IN6_ARE_ADDR_EQUAL(&in6p->in6p_faddr, &ip6->ip6_src)) 184 if (in6_cksum(m, ip6->ip6_nxt, *offp, 289 struct ip6_hdr *ip6; local 314 ip6 = ip6cp->ip6c_ip6; 320 ip6 = NULL; 341 struct ip6_hdr *ip6; local 397 M_PREPEND(m, sizeof(*ip6), M_WAI [all...] |
H A D | in6_cksum.c | 127 #include <netinet/ip6.h> 160 struct ip6_hdr *ip6; local 190 ip6 = mtod(m, struct ip6_hdr *); 191 w = (u_int16_t *)&ip6->ip6_src; 197 if (!IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_src)) 203 if (!IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_dst))
|
H A D | ipsec.c | 100 #include <netinet/ip6.h> 1185 struct ip6_hdr *ip6 = NULL; local 1189 if (m->m_len >= sizeof(*ip6)) 1190 ip6 = mtod(m, struct ip6_hdr *); 1193 ip6 = &ip6buf; 1200 bcopy(&ip6->ip6_src, &sin6->sin6_addr, sizeof(ip6->ip6_src)); 1201 if (IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_src)) { 1203 sin6->sin6_scope_id = ntohs(ip6->ip6_src.s6_addr16[1]); 1211 bcopy(&ip6 2428 struct ip6_hdr *ip6; local 2505 struct ip6_hdr *ip6, *ip6i; local 2591 struct ip6_hdr *ip6; local 3283 struct ip6_hdr *ip6; local 3460 struct ip6_hdr *ip6; local 3895 struct ip6_hdr *ip6; local [all...] |
H A D | mld6.c | 121 #include <netinet/ip6.h> 739 mld_v1_input_query(struct ifnet *ifp, const struct ip6_hdr *ip6, argument 760 if (!IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_src)) { 762 ip6_sprintf(&ip6->ip6_src), 778 dst = ip6->ip6_dst; 914 mld_v2_input_query(struct ifnet *ifp, const struct ip6_hdr *ip6, argument 931 if (!IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_src)) { 933 ip6_sprintf(&ip6->ip6_src), 984 dst = ip6->ip6_dst; 1215 mld_v1_input_report(struct ifnet *ifp, const struct ip6_hdr *ip6, argument 1370 struct ip6_hdr *ip6; local 1943 struct ip6_hdr *ip6; local 3232 struct ip6_hdr *ip6; local 3353 struct ip6_hdr *ip6; local [all...] |
/darwin-on-arm/xnu/bsd/net/classq/ |
H A D | classq_util.c | 78 #include <netinet/ip6.h> 122 struct ip6_hdr *ip6 = (struct ip6_hdr *)(void *)t->pftag_hdr; local 125 if (((uintptr_t)ip6 + sizeof (*ip6)) > 129 flowlabel = ntohl(ip6->ip6_flow); 187 struct ip6_hdr *ip6 = (struct ip6_hdr *)t->pftag_hdr; local 190 if (((uintptr_t)ip6 + sizeof (*ip6)) > 194 flowlabel = ntohl(ip6->ip6_flow); 198 ip6 275 struct ip6_hdr *ip6 = hdr; local [all...] |
/darwin-on-arm/xnu/bsd/netinet/ |
H A D | tcp_debug.h | 82 struct ip6_hdr ip6; member in struct:tcp_debug::__anon416
|
H A D | in_gif.c | 85 #include <netinet/ip6.h> 143 struct ip6_hdr *ip6; local 145 if (mbuf_len(m) < sizeof(*ip6)) { 146 m = m_pullup(m, sizeof(*ip6)); 150 ip6 = mtod(m, struct ip6_hdr *); 151 tos = (ntohl(ip6->ip6_flow) >> 20) & 0xff; 281 struct ip6_hdr *ip6; local 284 if (mbuf_len(m) < sizeof(*ip6)) { 285 m = m_pullup(m, sizeof(*ip6)); 289 ip6 [all...] |
H A D | Makefile | 21 in_systm.h in_var.h ip.h ip6.h \
|
/darwin-on-arm/xnu/bsd/man/man4/ |
H A D | Makefile | 25 ip6.4 \
|
/darwin-on-arm/xnu/bsd/net/ |
H A D | if_stf.c | 135 #include <netinet/ip6.h> 524 struct ip6_hdr *ip6; local 540 * If we don't have an ip4 address that match my inner ip6 address, 549 if (mbuf_len(m) < sizeof(*ip6)) { 550 m = m_pullup(m, sizeof(*ip6)); 557 ip6 = mtod(m, struct ip6_hdr *); 558 tos = (ntohl(ip6->ip6_flow) >> 20) & 0xff; 564 if (IN6_IS_ADDR_6TO4(&ip6->ip6_dst)) 565 in4 = GET_V4(&ip6->ip6_dst); 747 struct ip6_hdr ip6; local [all...] |
H A D | pf_osfp.c | 65 #include <netinet/ip6.h> 93 struct ip6_hdr *ip6; local 103 ip6 = (struct ip6_hdr *)NULL; 106 ip6 = mtod(m, struct ip6_hdr *); 112 return (pf_osfp_fingerprint_hdr(ip, ip6, (struct tcphdr *)(void *)hdr)); 116 pf_osfp_fingerprint_hdr(const struct ip *ip, const struct ip6_hdr *ip6, argument 120 #pragma unused(ip6) 145 else if (ip6) { 147 fp.fp_psize = sizeof (struct ip6_hdr) + ntohs(ip6->ip6_plen); 148 fp.fp_ttl = ip6 [all...] |