/macosx-10.5.8/xnu-1228.15.4/bsd/netinet6/ |
H A D | route6.c | 44 #include <netinet/ip6.h> 57 struct ip6_hdr *ip6; local 75 ip6 = mtod(m, struct ip6_hdr *); 76 rh = (struct ip6_rthdr *)((caddr_t)ip6 + off); 78 ip6 = mtod(m, struct ip6_hdr *); 112 if (ip6_rthdr0(m, ip6, (struct ip6_rthdr0 *)rh)) 124 (caddr_t)&rh->ip6r_type - (caddr_t)ip6); 140 ip6_rthdr0(m, ip6, rh0) 142 struct ip6_hdr *ip6; 164 (caddr_t)&rh0->ip6r0_len - (caddr_t)ip6); [all...] |
H A D | in6_gif.c | 56 #include <netinet/ip6.h> 94 struct ip6_hdr *ip6; local 126 if (mbuf_len(m) < sizeof(*ip6)) { 127 m = m_pullup(m, sizeof(*ip6)); 131 ip6 = mtod(m, struct ip6_hdr *); 132 itos = (ntohl(ip6->ip6_flow) >> 20) & 0xff; 154 ip6 = mtod(m, struct ip6_hdr *); 155 ip6->ip6_flow = 0; 156 ip6->ip6_vfc &= ~IPV6_VERSION_MASK; 157 ip6 231 struct ip6_hdr *ip6; local 305 gif_validate6( const struct ip6_hdr *ip6, struct gif_softc *sc, struct ifnet *ifp) argument 368 struct ip6_hdr ip6; local [all...] |
H A D | nd6_nbr.c | 53 #include <netinet/ip6.h> 101 struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *); local 103 struct in6_addr saddr6 = ip6->ip6_src; 104 struct in6_addr daddr6 = ip6->ip6_dst; 117 nd_ns = (struct nd_neighbor_solicit *)((caddr_t)ip6 + off); 125 ip6 = mtod(m, struct ip6_hdr *); /* adjust pointer for safety */ 128 if (ip6->ip6_hlim != 255) { 131 ip6->ip6_hlim, ip6_sprintf(&ip6->ip6_src), 132 ip6_sprintf(&ip6 347 struct ip6_hdr *ip6; local 545 struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *); local 850 struct ip6_hdr *ip6; local [all...] |
H A D | ip6_input.c | 124 #include <netinet/ip6.h> 244 ip6_mutex_grp = lck_grp_alloc_init("ip6", ip6_mutex_grp_attr); 358 struct ip6_hdr *ip6; local 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 1101 struct ip6_hdr *ip6; local 1249 struct ip6_hdr *ip6; local 1623 struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *); local 1666 struct ip6_hdr ip6; local [all...] |
H A D | ip6_forward.c | 55 #include <netinet/ip6.h> 93 struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *); local 132 IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst) || 133 IN6_IS_ADDR_UNSPECIFIED(&ip6->ip6_src)) { 141 ip6_sprintf(&ip6->ip6_src), 142 ip6_sprintf(&ip6->ip6_dst), 143 ip6->ip6_nxt, 150 if (ip6->ip6_hlim <= IPV6_HLIMDEC) { 160 ip6->ip6_hlim -= IPV6_HLIMDEC; 308 * ip6forward_rt->ro_dst.sin6_addr is equal to ip6 [all...] |
H A D | raw_ip6.c | 83 #include <netinet/ip6.h> 129 register struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *); local 134 int proto = ip6->ip6_nxt; 139 if (faithprefix(&ip6->ip6_dst)) { 156 !IN6_ARE_ADDR_EQUAL(&in6p->in6p_laddr, &ip6->ip6_dst)) 159 !IN6_ARE_ADDR_EQUAL(&in6p->in6p_faddr, &ip6->ip6_src)) 163 if (in6_cksum(m, ip6->ip6_nxt, *offp, 185 ip6_savecontrol(last, &opts, ip6, n); 214 ip6_savecontrol(last, &opts, ip6, m); 245 struct ip6_hdr *ip6; local 294 struct ip6_hdr *ip6; local [all...] |
H A D | udp6_output.c | 93 #include <netinet/ip6.h> 146 struct ip6_hdr *ip6; local 291 ip6 = mtod(m, struct ip6_hdr *); 292 ip6->ip6_flow = in6p->in6p_flowinfo & IPV6_FLOWINFO_MASK; 293 ip6->ip6_vfc &= ~IPV6_VERSION_MASK; 294 ip6->ip6_vfc |= IPV6_VERSION; 296 ip6->ip6_plen = htons((u_short)plen); 298 ip6->ip6_nxt = IPPROTO_UDP; 299 ip6->ip6_hlim = in6_selecthlim(in6p, 302 ip6 [all...] |
H A D | esp_input.c | 67 #include <netinet/ip6.h> 117 struct ip6_hdr *ip6; local 406 if (m->m_len < sizeof(*ip6)) { 407 m = m_pullup(m, sizeof(*ip6)); 414 ip6 = mtod(m, struct ip6_hdr *); 421 (caddr_t)&ip6->ip6_src, (caddr_t)&ip6->ip6_dst)) { 424 ipsec6_logpacketstr(ip6, spi), ipsec_logsastr(sav))); 564 struct ip6_hdr *ip6; local 593 ip6 978 struct ip6_hdr *ip6; local [all...] |
H A D | frag6.c | 52 #include <netinet/ip6.h> 75 struct ip6q ip6q; /* ip6 reassemble queue */ 142 struct ip6_hdr *ip6; local 155 ip6 = mtod(m, struct ip6_hdr *); 158 ip6f = (struct ip6_frag *)((caddr_t)ip6 + offset); 171 || !IN6_ARE_ADDR_EQUAL(&dst->sin6_addr, &ip6->ip6_dst))) { 179 dst->sin6_addr = ip6->ip6_dst; 191 if (ip6->ip6_plen == 0) { 204 (((ntohs(ip6->ip6_plen) - offset) & 0x7) != 0)) { 232 IN6_ARE_ADDR_EQUAL(&ip6 588 struct ip6_hdr *ip6; local [all...] |
H A D | udp6_usrreq.c | 95 #include <netinet/ip6.h> 165 udp6_append(struct inpcb *last, struct ip6_hdr *ip6, argument 178 ip6_savecontrol(last, &opts, ip6, n); 194 register struct ip6_hdr *ip6; local 205 ip6 = mtod(m, struct ip6_hdr *); 208 if (faithprefix(&ip6->ip6_dst)) { 217 plen = ntohs(ip6->ip6_plen) - off + sizeof(*ip6); 218 uh = (struct udphdr *)((caddr_t)ip6 + off); 238 if (IN6_IS_ADDR_MULTICAST(&ip6 473 struct ip6_hdr *ip6; local [all...] |
H A D | ip6_mroute.c | 105 #include <netinet/ip6.h> 947 * pointed to by "ip6" has arrived on (or is about to be sent to) the interface 957 ip6_mforward(ip6, ifp, m) 958 struct ip6_hdr *ip6; 971 ip6_sprintf(&ip6->ip6_src), ip6_sprintf(&ip6->ip6_dst), 979 if (ip6->ip6_hlim <= 1 || IN6_IS_ADDR_MC_NODELOCAL(&ip6->ip6_dst) || 980 IN6_IS_ADDR_MC_LINKLOCAL(&ip6->ip6_dst)) 982 ip6 1279 struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *); local 1646 struct ip6_hdr *ip6; local [all...] |
H A D | mld6.c | 89 #include <netinet/ip6.h> 196 struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *); local 216 ip6 = mtod(m, struct ip6_hdr *);/* in case mpullup */ 217 if (!IN6_IS_ADDR_LINKLOCAL(&ip6->ip6_src)) { 220 ip6_sprintf(&ip6->ip6_src), 397 struct ip6_hdr *ip6; local 412 * Allocate mbufs to store ip6 header and MLD header. 436 /* fill in the ip6 header */ 437 ip6 = mtod(mh, struct ip6_hdr *); 438 ip6 [all...] |
H A D | dest6.c | 49 #include <netinet/ip6.h> 65 struct ip6_hdr *ip6; local 67 ip6 = mtod(m, struct ip6_hdr *);
|
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, 273 is_icmp6_query(struct ip6_hdr *ip6, int off) argument 278 icmp6 = (struct icmp6_hdr *)((caddr_t)ip6 + off); 296 struct ip6_hdr *ip6 = *pip6; local 303 *nxt = ip6->ip6_nxt; 305 len = ntohs(ip6->ip6_plen) + sizeof(struct ip6_hdr); 307 ip6e = (struct ip6_ext *)((caddr_t) ip6 + *off); 316 ip6f = (struct ip6_frag *) ((caddr_t)ip6 410 ip6fw_report(struct ip6_fw *f, struct ip6_hdr *ip6, struct ifnet *rif, struct ifnet *oif, int off, int nxt) argument 556 struct ip6_hdr *ip6 = *pip6; local 833 struct ip6_hdr ip6; member in struct:__anon329 [all...] |
H A D | ah_input.c | 66 #include <netinet/ip6.h> 564 struct ip6_hdr *ip6; local 587 ip6 = mtod(m, struct ip6_hdr *); 593 if (ntohs(ip6->ip6_plen) == 0) { 601 (caddr_t)&ip6->ip6_src, (caddr_t)&ip6->ip6_dst, 648 ipsec6_logpacketstr(ip6, spi))); 656 ipsec6_logpacketstr(ip6, spi))); 685 ipsec6_logpacketstr(ip6, spi), 724 ipsec6_logpacketstr(ip6, sp 946 struct ip6_hdr *ip6; local [all...] |
H A D | icmp6.c | 89 #include <netinet/ip6.h> 372 struct ip6_hdr *ip6, *nip6; local 388 ip6 = mtod(m, struct ip6_hdr *); 398 icmp6 = (struct icmp6_hdr *)((caddr_t)ip6 + off); 411 icmp6->icmp6_type, sum, ip6_sprintf(&ip6->ip6_src))); 417 if (faithprefix(&ip6->ip6_dst)) { 520 if (icmp6_ratelimit(&ip6->ip6_dst, icmp6->icmp6_type, code)) { 564 bcopy(ip6, nip6, sizeof(struct ip6_hdr)); 609 if (icmp6_ratelimit(&ip6->ip6_dst, icmp6->icmp6_type, code)) { 642 if ((icmp6_nodeinfo & 8) != 8 && in6_addrscope(&ip6 1182 struct ip6_hdr *ip6; local 1909 struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *); local 1997 struct ip6_hdr *ip6; local 2229 struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *); local 2443 struct ip6_hdr *ip6; /* m as struct ip6_hdr */ local [all...] |
H A D | in6_cksum.c | 73 #include <netinet/ip6.h> 102 struct ip6_hdr *ip6; local 132 ip6 = mtod(m, struct ip6_hdr *); 133 w = (u_int16_t *)&ip6->ip6_src; 139 if (!IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_src)) 145 if (!IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_dst))
|
H A D | ip6_output.c | 94 #include <netinet/ip6.h> 171 struct ip6_hdr *ip6, *mhip6; local 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 2653 struct ip6_hdr *ip6; local 2717 struct ip6_hdr *ip6; local [all...] |
H A D | ipsec.c | 71 #include <netinet/ip6.h> 1164 struct ip6_hdr *ip6 = NULL; local 1168 if (m->m_len >= sizeof(*ip6)) 1169 ip6 = mtod(m, struct ip6_hdr *); 1172 ip6 = &ip6buf; 1179 bcopy(&ip6->ip6_src, &sin6->sin6_addr, sizeof(ip6->ip6_src)); 1180 if (IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_src)) { 1182 sin6->sin6_scope_id = ntohs(ip6->ip6_src.s6_addr16[1]); 1190 bcopy(&ip6 2270 struct ip6_hdr *ip6; local 2347 struct ip6_hdr *ip6, *ip6i; local 3037 struct ip6_hdr *ip6; local 3215 struct ip6_hdr *ip6; local 3589 struct ip6_hdr *ip6; local [all...] |
/macosx-10.5.8/xnu-1228.15.4/bsd/netinet/ |
H A D | tcp_debug.h | 82 struct ip6_hdr ip6; member in struct:tcp_debug::__anon320
|
H A D | in_gif.c | 85 #include <netinet/ip6.h> 145 struct ip6_hdr *ip6; local 147 if (mbuf_len(m) < sizeof(*ip6)) { 148 m = m_pullup(m, sizeof(*ip6)); 152 ip6 = mtod(m, struct ip6_hdr *); 153 tos = (ntohl(ip6->ip6_flow) >> 20) & 0xff; 280 struct ip6_hdr *ip6; local 283 if (mbuf_len(m) < sizeof(*ip6)) { 284 m = m_pullup(m, sizeof(*ip6)); 288 ip6 [all...] |
H A D | tcp_subr.c | 96 #include <netinet/ip6.h> 393 struct ip6_hdr *ip6; local 395 ip6 = (struct ip6_hdr *)ip_ptr; 396 ip6->ip6_flow = (ip6->ip6_flow & ~IPV6_FLOWINFO_MASK) | 398 ip6->ip6_vfc = (ip6->ip6_vfc & ~IPV6_VERSION_MASK) | 400 ip6->ip6_nxt = IPPROTO_TCP; 401 ip6->ip6_plen = sizeof(struct tcphdr); 402 ip6 492 struct ip6_hdr *ip6; local [all...] |
H A D | Makefile | 25 in_systm.h in_var.h ip.h ip6.h \
|
/macosx-10.5.8/xnu-1228.15.4/bsd/man/man4/ |
H A D | Makefile | 24 ip6.4 \
|
/macosx-10.5.8/xnu-1228.15.4/bsd/net/ |
H A D | if_stf.c | 105 #include <netinet/ip6.h> 460 struct ip6_hdr *ip6; local 475 * If we don't have an ip4 address that match my inner ip6 address, 484 if (mbuf_len(m) < sizeof(*ip6)) { 485 m = m_pullup(m, sizeof(*ip6)); 491 ip6 = mtod(m, struct ip6_hdr *); 492 tos = (ntohl(ip6->ip6_flow) >> 20) & 0xff; 498 if (IN6_IS_ADDR_6TO4(&ip6->ip6_dst)) 499 in4 = GET_V4(&ip6->ip6_dst); 670 struct ip6_hdr ip6; local [all...] |