| /xnu-8792.41.9/bsd/net/ |
| H A D | nat464_utils.c | 319 } else if (ptr == PTR_IP6(ip6_nxt)) { in nat464_translate_icmp() 391 ptr = offsetof(struct ip6_hdr, ip6_nxt); in nat464_translate_icmp() 434 ptr = PTR_IP6(ip6_nxt); in nat464_translate_icmp() 542 ip6->ip6_nxt = IPPROTO_ICMPV6; in nat464_translate_icmp_ip() 544 ip6->ip6_nxt = proto2; in nat464_translate_icmp_ip() 558 __func__, ntohs(ip6->ip6_plen), ip6->ip6_nxt, in nat464_translate_icmp_ip() 605 p_ip6_frag->ip6f_nxt = p_ip6h->ip6_nxt; in nat464_insert_frag46() 615 p_ip6h->ip6_nxt = IPPROTO_FRAGMENT; in nat464_insert_frag46() 748 ip6->ip6_nxt = proto; in nat464_translate_46() 757 ntohs(ip6->ip6_plen), ip6->ip6_nxt, in nat464_translate_46() [all …]
|
| H A D | pktap.c | 1031 if (ip6.ip6_nxt == IPPROTO_TCP) { in pktap_fill_proc_info() 1047 } else if (ip6.ip6_nxt == IPPROTO_UDP) { in pktap_fill_proc_info() 1077 ip6.ip6_nxt, hdr->pth_ifname); in pktap_fill_proc_info()
|
| H A D | if_ipsec.c | 748 error = ipsec6_interface_output(&ipsec_state, interface, &ip6->ip6_nxt, ipsec_state.m); in ipsec_encrypt_mbuf() 1547 ip6, NULL, fragment_mtu, ip6->ip6_nxt, htonl(ip6_randomid())); in ipsec_netif_sync_rx() 1761 esp6_input_extended(&data, &offset, ip6->ip6_nxt, pcb->ipsec_ifp); in ipsec_netif_sync_rx() 3857 error = ipsec6_interface_output(&ipsec_state, interface, &ip6->ip6_nxt, ipsec_state.m); in ipsec_output() 3877 data->m_pkthdr.pkt_proto = ip6->ip6_nxt; in ipsec_output() 4238 packet->m_pkthdr.pkt_proto = ip6->ip6_nxt; in ipsec_set_pkthdr_for_interface()
|
| H A D | pf_norm.c | 1392 ip6->ip6_nxt = (*frag)->fr_p; in pf_reassemble6() 1876 proto = hdr->ip6_nxt; in pf_refragment6() 2274 else if (r->proto && r->proto != h->ip6_nxt) { in pf_normalize_ip6() 2315 proto = h->ip6_nxt; in pf_normalize_ip6()
|
| H A D | packet_mangler.c | 843 if (ip6.ip6_nxt != p_pkt_mnglr->proto) { in pktmnglr_ipfilter_input()
|
| H A D | if_ports_used.c | 1462 uint8_t l4_proto = ip6_hdr.ip6_nxt; in if_ports_used_match_mbuf() 1588 __func__, ip6_hdr.ip6_nxt, IF_XNAME(ifp)); in if_ports_used_match_mbuf()
|
| H A D | pf.c | 2725 h6->ip6_nxt = IPPROTO_TCP; in pf_send_tcp() 4543 ip6->ip6_nxt = IPPROTO_ICMPV6; in pf_change_icmp_af() 4545 ip6->ip6_nxt = pd2->proto; in pf_change_icmp_af() 4631 } else if (ptr == PTR_IP6(ip6_nxt)) { in pf_translate_icmp_af() 4703 ptr = offsetof(struct ip6_hdr, ip6_nxt); in pf_translate_icmp_af() 4739 ptr = PTR_IP6(ip6_nxt); in pf_translate_icmp_af() 4842 ip6->ip6_nxt = pd->proto; in pf_nat64_ipv4() 8061 pd2.proto = h2_6.ip6_nxt; in pf_test_state_icmp() 10315 nxt = h->ip6_nxt; in pf_test6() 10379 pd.proto = h->ip6_nxt; in pf_test6()
|
| /xnu-8792.41.9/bsd/netinet6/ |
| H A D | ip6_input.c | 578 if (ip6->ip6_nxt == IPPROTO_TCP || in ip6_input_adjust() 579 ip6->ip6_nxt == IPPROTO_UDP) { in ip6_input_adjust() 756 __func__, (*deliverifp)->if_xname, src_str, dst_str, ip6->ip6_nxt, inifp->if_xname); in ip6_input_check_interface() 768 __func__, src_str, dst_str, ip6->ip6_nxt, inifp->if_xname); in ip6_input_check_interface() 843 nxt = ip6->ip6_nxt; in ip6_input() 936 ip6stat.ip6s_nxthist[ip6->ip6_nxt]++; in ip6_input() 1152 ip6->ip6_nxt == IPPROTO_ICMPV6) { in ip6_input() 1165 if (ip6->ip6_nxt == IPPROTO_HOPOPTS) { in ip6_input() 1227 nxt = ip6->ip6_nxt; in ip6_input() 1949 if (ip6->ip6_nxt == IPPROTO_HOPOPTS) { in ip6_savecontrol() [all …]
|
| H A D | ip6_forward.c | 234 ip6->ip6_nxt, in ip6_forward() 525 ip6->ip6_nxt, in ip6_forward() 676 ip6->ip6_nxt, if_name(m->m_pkthdr.rcvif), in ip6_forward()
|
| H A D | raw_ip6.c | 200 if (in6_cksum(m, ip6->ip6_nxt, *offp, in rip6_input() 684 ip6->ip6_nxt = in6p->in6p_ip6_nxt; in rip6_output() 714 *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 | esp_output.c | 426 inner_protocol = inner_ip6->ip6_nxt; in esp_output() 442 inner_protocol = ip6->ip6_nxt; in esp_output()
|
| H A D | esp_input.c | 166 ip6->ip6_nxt = IPPROTO_ESP; in esp6_input_strip_udp_encap() 187 proto = inner_ip6->ip6_nxt; in esp_input_log() 651 inner_ip_proto = ip6->ip6_nxt; in esp4_input_extended() 1306 inner_ip_proto = ip6->ip6_nxt; in esp6_input_extended()
|
| H A D | ip6_output.c | 524 nxt0 = ip6->ip6_nxt; in ip6_output_list() 791 nexthdrp = &ip6->ip6_nxt; in ip6_output_list() 809 *mtod(exthdrs.ip6e_dest2, u_char *) = ip6->ip6_nxt; in ip6_output_list() 810 ip6->ip6_nxt = IPPROTO_DSTOPTS; in ip6_output_list() 1847 nextproto = ip6->ip6_nxt; in ip6_do_fragmentation() 1848 ip6->ip6_nxt = IPPROTO_FRAGMENT; in ip6_do_fragmentation() 2041 nxt = ip6->ip6_nxt; in in6_finalize_cksum()
|
| H A D | icmp6.c | 992 u_int8_t nxt = eip6->ip6_nxt; in icmp6_notify_error() 2307 ip6->ip6_nxt = IPPROTO_ICMPV6; in icmp6_reflect() 2452 ip6->ip6_nxt = IPPROTO_ICMPV6; in icmp6_reflect() 2875 ip6->ip6_nxt = IPPROTO_ICMPV6; in icmp6_redirect_output()
|
| H A D | udp6_output.c | 434 ip6->ip6_nxt = IPPROTO_UDP; in udp6_output()
|
| H A D | ipsec.c | 2446 ip6->ip6_nxt = IPPROTO_IPV6; in ipsec6_encapsulate() 2630 error = esp6_output(state->m, &ip6->ip6_nxt, state->m->m_next, sav); in ipsec6_update_routecache_and_output() 2637 error = ah6_output(state->m, &ip6->ip6_nxt, state->m->m_next, sav); in ipsec6_update_routecache_and_output() 2810 ip6->ip6_nxt = IPPROTO_IPV4; in ipsec46_encapsulate() 3986 error = esp6_output(state->m, &ip6->ip6_nxt, state->m->m_next, sav); in ipsec6_output_tunnel_internal() 3993 error = ah6_output(state->m, &ip6->ip6_nxt, state->m->m_next, sav); in ipsec6_output_tunnel_internal() 4989 ip6->ip6_nxt = IPPROTO_UDP; in ipsec_send_natt_keepalive()
|
| H A D | nd6_nbr.c | 657 ip6->ip6_nxt = IPPROTO_ICMPV6; in nd6_ns_output() 1476 ip6->ip6_nxt = IPPROTO_ICMPV6; in nd6_na_output()
|
| H A D | mld6.c | 2296 ip6->ip6_nxt = IPPROTO_ICMPV6; in mld_v1_transmit_report() 3764 ip6->ip6_nxt = IPPROTO_ICMPV6; in mld_v2_encap_report()
|
| /xnu-8792.41.9/bsd/skywalk/nexus/flowswitch/flow/ |
| H A D | flow_classifier.c | 268 pkt->pkt_flow_ip_proto = ip6->ip6_nxt; in flow_pkt_classify() 272 if (__improbable(ip6->ip6_nxt == IPPROTO_FRAGMENT)) { in flow_pkt_classify()
|
| H A D | flow_track.c | 793 ip6->ip6_nxt = IPPROTO_TCP; in flow_track_abort_tcp() 959 ip6->ip6_nxt = IPPROTO_UDP; in flow_track_abort_quic()
|
| /xnu-8792.41.9/bsd/netinet/ |
| H A D | ip6.h | 127 #define ip6_nxt ip6_ctlun.ip6_un1.ip6_un1_nxt macro
|
| H A D | udp_usrreq.c | 786 ip6->ip6_nxt = ip->ip_p; in ip_2_ip6_hdr() 3032 ip6->ip6_nxt = IPPROTO_UDP; in udp_fill_keepalive_offload_frames()
|
| /xnu-8792.41.9/tests/ |
| H A D | net_bridge.c | 878 switch (ip6->ip6_nxt) { in ip6_frame_validate() 1103 ip6_udp->ip6.ip6_nxt = IPPROTO_UDP; in ethernet_udp6_frame_populate() 1288 T_ASSERT_EQ((int)ip6_udp->ip6.ip6_nxt, IPPROTO_UDP, NULL); in ethernet_frame_get_udp6_payload() 1458 ip6->ip6_nxt = IPPROTO_ICMPV6; in ethernet_nd6_frame_populate() 2796 T_ASSERT_EQ(ip6->ip6_nxt, IPPROTO_ICMPV6, NULL); in validate_mac_nat_nd6_out()
|
| /xnu-8792.41.9/bsd/skywalk/nexus/ |
| H A D | nexus_traffic_rule.c | 401 td->inet_proto = ip6->ip6_nxt; in fill_inet_td()
|