| /xnu-11215.1.10/bsd/net/ |
| H A D | nat464_utils.c | 325 } else if (ptr == PTR_IP6(ip6_nxt)) { in nat464_translate_icmp() 397 ptr = offsetof(struct ip6_hdr, ip6_nxt); in nat464_translate_icmp() 440 ptr = PTR_IP6(ip6_nxt); in nat464_translate_icmp() 548 ip6->ip6_nxt = IPPROTO_ICMPV6; in nat464_translate_icmp_ip() 550 ip6->ip6_nxt = proto2; in nat464_translate_icmp_ip() 564 __func__, ntohs(ip6->ip6_plen), ip6->ip6_nxt, in nat464_translate_icmp_ip() 611 p_ip6_frag->ip6f_nxt = p_ip6h->ip6_nxt; in nat464_insert_frag46() 621 p_ip6h->ip6_nxt = IPPROTO_FRAGMENT; in nat464_insert_frag46() 754 ip6->ip6_nxt = proto; in nat464_translate_46() 763 ntohs(ip6->ip6_plen), ip6->ip6_nxt, in nat464_translate_46() [all …]
|
| H A D | pktap.c | 1060 if (ip6.ip6_nxt == IPPROTO_TCP) { in pktap_fill_proc_info() 1076 } else if (ip6.ip6_nxt == IPPROTO_UDP) { in pktap_fill_proc_info() 1106 ip6.ip6_nxt, hdr->pth_ifname); in pktap_fill_proc_info()
|
| H A D | pf_norm.c | 1392 ip6->ip6_nxt = (*frag)->fr_p; in pf_reassemble6() 1875 proto = hdr->ip6_nxt; in pf_refragment6() 2273 else if (r->proto && r->proto != h->ip6_nxt) { in pf_normalize_ip6() 2314 proto = h->ip6_nxt; in pf_normalize_ip6()
|
| H A D | packet_mangler.c | 844 if (ip6.ip6_nxt != p_pkt_mnglr->proto) { in pktmnglr_ipfilter_input()
|
| H A D | if_ipsec.c | 1602 ip6, NULL, fragment_mtu, ip6->ip6_nxt, htonl(ip6_randomid((uint64_t)data))); in ipsec_netif_sync_rx() 3778 error = ipsec6_interface_output(&ipsec_state, interface, &ip6->ip6_nxt, ipsec_state.m); in ipsec_output() 3798 data->m_pkthdr.pkt_proto = ip6->ip6_nxt; in ipsec_output() 4176 packet->m_pkthdr.pkt_proto = ip6->ip6_nxt; in ipsec_set_pkthdr_for_interface()
|
| H A D | if_ports_used.c | 1641 uint8_t l4_proto = ip6_hdr.ip6_nxt; in if_ports_used_match_mbuf() 1767 __func__, ip6_hdr.ip6_nxt, IF_XNAME(ifp)); in if_ports_used_match_mbuf()
|
| H A D | pf.c | 2763 h6->ip6_nxt = IPPROTO_TCP; in pf_send_tcp() 4580 ip6->ip6_nxt = IPPROTO_ICMPV6; in pf_change_icmp_af() 4582 ip6->ip6_nxt = pd2->proto; in pf_change_icmp_af() 4668 } else if (ptr == PTR_IP6(ip6_nxt)) { in pf_translate_icmp_af() 4740 ptr = offsetof(struct ip6_hdr, ip6_nxt); in pf_translate_icmp_af() 4776 ptr = PTR_IP6(ip6_nxt); in pf_translate_icmp_af() 4879 ip6->ip6_nxt = pd->proto; in pf_nat64_ipv4() 8097 pd2.proto = h2_6.ip6_nxt; in pf_test_state_icmp() 10350 nxt = h->ip6_nxt; in pf_test6() 10414 pd.proto = h->ip6_nxt; in pf_test6()
|
| /xnu-11215.1.10/tests/skywalk/ |
| H A D | skt_reass.c | 251 ip6->ip6_nxt = IPPROTO_FRAGMENT; in bad_fraglen_build() 296 if (ip6->ip6_nxt != IPPROTO_ICMPV6) { in bad_fraglen_match() 325 ip6->ip6_nxt = IPPROTO_FRAGMENT; in timeout_build() 370 if (ip6->ip6_nxt != IPPROTO_ICMPV6) { in timeout_match() 406 ip6->ip6_nxt = IPPROTO_FRAGMENT; in atomic_build() 471 if (ip6->ip6_nxt != IPPROTO_ICMPV6) { in atomic_match() 500 ip6->ip6_nxt = IPPROTO_FRAGMENT; in queue_limit_build()
|
| H A D | skt_netifdirect.c | 228 ip6_hdr.ip6_nxt = IPPROTO_UDP; in skt_netif_ipv6_udp_frame_populate() 242 htonl(ntohs(udp_hdr.uh_ulen) + ip6_hdr.ip6_nxt)); in skt_netif_ipv6_udp_frame_populate() 278 assert(ip6_hdr->ip6_nxt == IPPROTO_UDP); in skt_netif_ipv6_udp_frame_process() 286 htonl(ntohs(udp_hdr->uh_ulen) + ip6_hdr->ip6_nxt)); in skt_netif_ipv6_udp_frame_process()
|
| /xnu-11215.1.10/bsd/netinet6/ |
| H A D | ip6_input.c | 581 if (ip6->ip6_nxt == IPPROTO_TCP || in ip6_input_adjust() 582 ip6->ip6_nxt == IPPROTO_UDP) { in ip6_input_adjust() 759 __func__, (*deliverifp)->if_xname, src_str, dst_str, ip6->ip6_nxt, inifp->if_xname); in ip6_input_check_interface() 771 __func__, src_str, dst_str, ip6->ip6_nxt, inifp->if_xname); in ip6_input_check_interface() 846 nxt = ip6->ip6_nxt; in ip6_input() 941 ip6stat.ip6s_nxthist[ip6->ip6_nxt]++; in ip6_input() 1171 ip6->ip6_nxt == IPPROTO_ICMPV6) { in ip6_input() 1185 if (ip6->ip6_nxt == IPPROTO_HOPOPTS) { in ip6_input() 1247 nxt = ip6->ip6_nxt; in ip6_input() 1982 if (ip6->ip6_nxt == IPPROTO_HOPOPTS) { in ip6_savecontrol() [all …]
|
| H A D | ip6_forward.c | 237 ip6->ip6_nxt, in ip6_forward() 528 ip6->ip6_nxt, in ip6_forward() 679 ip6->ip6_nxt, if_name(m->m_pkthdr.rcvif), in ip6_forward()
|
| H A D | esp_output.c | 430 inner_protocol = inner_ip6->ip6_nxt; in esp_output() 446 inner_protocol = ip6->ip6_nxt; in esp_output() 1035 nxt_proto = ip6->ip6_nxt; in esp_kpipe_output() 1170 ip6->ip6_nxt = IPPROTO_ESP; in esp_kpipe_output()
|
| H A D | esp_input.c | 170 ip6->ip6_nxt = IPPROTO_ESP; in esp6_input_strip_udp_encap() 191 proto = inner_ip6->ip6_nxt; in esp_input_log() 668 inner_ip_proto = ip6->ip6_nxt; in esp4_input_extended() 1326 inner_ip_proto = ip6->ip6_nxt; in esp6_input_extended() 1784 nxt_proto = ip6->ip6_nxt; in esp_kpipe_input() 2059 ip6->ip6_nxt = nxt_proto; in esp_kpipe_input()
|
| H A D | raw_ip6.c | 201 if (in6_cksum(m, ip6->ip6_nxt, *offp, in rip6_input() 691 ip6->ip6_nxt = in6p->in6p_ip6_nxt; in rip6_output() 721 *p = in6_cksum(m, ip6->ip6_nxt, sizeof(*ip6), plen); in rip6_output()
|
| H A D | in6_gif.c | 175 ip6->ip6_nxt = proto; in in6_gif_output()
|
| H A D | ip6_output.c | 534 nxt0 = ip6->ip6_nxt; in ip6_output_list() 804 nexthdrp = &ip6->ip6_nxt; in ip6_output_list() 822 *mtod(exthdrs.ip6e_dest2, u_char *) = ip6->ip6_nxt; in ip6_output_list() 823 ip6->ip6_nxt = IPPROTO_DSTOPTS; in ip6_output_list() 1866 nextproto = ip6->ip6_nxt; in ip6_do_fragmentation() 1867 ip6->ip6_nxt = IPPROTO_FRAGMENT; in ip6_do_fragmentation() 2060 nxt = ip6->ip6_nxt; in in6_finalize_cksum()
|
| H A D | ipsec.c | 2435 ip6->ip6_nxt = IPPROTO_IPV6; in ipsec6_encapsulate() 2618 error = esp6_output(state->m, &ip6->ip6_nxt, state->m->m_next, sav); in ipsec6_update_routecache_and_output() 2625 error = ah6_output(state->m, &ip6->ip6_nxt, state->m->m_next, sav); in ipsec6_update_routecache_and_output() 2797 ip6->ip6_nxt = IPPROTO_IPV4; in ipsec46_encapsulate() 4255 error = esp6_output(state->m, &ip6->ip6_nxt, state->m->m_next, sav); in ipsec6_output_tunnel_internal() 4262 error = ah6_output(state->m, &ip6->ip6_nxt, state->m->m_next, sav); in ipsec6_output_tunnel_internal() 5271 ip6->ip6_nxt = IPPROTO_UDP; in ipsec_send_natt_keepalive() 5388 ip6->ip6_nxt = IPPROTO_UDP; in ipsec_fill_offload_frame()
|
| H A D | icmp6.c | 995 u_int8_t nxt = eip6->ip6_nxt; in icmp6_notify_error() 2310 ip6->ip6_nxt = IPPROTO_ICMPV6; in icmp6_reflect() 2455 ip6->ip6_nxt = IPPROTO_ICMPV6; in icmp6_reflect() 2874 ip6->ip6_nxt = IPPROTO_ICMPV6; in icmp6_redirect_output()
|
| H A D | udp6_output.c | 447 ip6->ip6_nxt = IPPROTO_UDP; in udp6_output()
|
| H A D | nd6_nbr.c | 678 ip6->ip6_nxt = IPPROTO_ICMPV6; in nd6_ns_output() 1514 ip6->ip6_nxt = IPPROTO_ICMPV6; in nd6_na_output()
|
| /xnu-11215.1.10/bsd/skywalk/nexus/flowswitch/flow/ |
| H A D | flow_classifier.c | 294 pkt->pkt_flow_ip_proto = ip6->ip6_nxt; in flow_pkt_classify() 298 if (__improbable(ip6->ip6_nxt == IPPROTO_FRAGMENT)) { in flow_pkt_classify()
|
| H A D | flow_track.c | 808 ip6->ip6_nxt = IPPROTO_TCP; in flow_track_abort_tcp() 975 ip6->ip6_nxt = IPPROTO_UDP; in flow_track_abort_quic()
|
| /xnu-11215.1.10/bsd/netinet/ |
| H A D | ip6.h | 127 #define ip6_nxt ip6_ctlun.ip6_un1.ip6_un1_nxt macro
|
| /xnu-11215.1.10/tests/ |
| H A D | net_bridge.c | 458 switch (ip6->ip6_nxt) { in ip6_frame_validate() 736 T_ASSERT_EQ((int)ip6_udp->ip6.ip6_nxt, IPPROTO_UDP, NULL); in ethernet_frame_get_udp6_payload() 906 ip6->ip6_nxt = IPPROTO_ICMPV6; in ethernet_nd6_frame_populate() 2225 T_ASSERT_EQ(ip6->ip6_nxt, IPPROTO_ICMPV6, NULL); in validate_mac_nat_nd6_out()
|
| H A D | net_test_lib.c | 330 ip6_udp->ip6.ip6_nxt = IPPROTO_UDP; in ethernet_udp6_frame_populate()
|