| /xnu-8019.80.24/bsd/net/ |
| H A D | packet_mangler.c | 769 if ((p_pkt_mnglr->lsaddr.ss_family == AF_INET6) && (ip.ip_v == 4)) { in pktmnglr_ipfilter_output() 773 if ((p_pkt_mnglr->lsaddr.ss_family == AF_INET) && (ip.ip_v == 6)) { in pktmnglr_ipfilter_output() 791 if (ip.ip_v != 4) { in pktmnglr_ipfilter_output() 794 __func__, __LINE__, ip.ip_v); in pktmnglr_ipfilter_output() 841 if (ip.ip_v == 6) { in pktmnglr_ipfilter_input() 849 if ((p_pkt_mnglr->lsaddr.ss_family == AF_INET6) && (ip.ip_v == 4)) { in pktmnglr_ipfilter_input() 855 if ((p_pkt_mnglr->lsaddr.ss_family == AF_INET) && (ip.ip_v == 6)) { in pktmnglr_ipfilter_input() 888 if (ip.ip_v == 4) { in pktmnglr_ipfilter_input() 890 } else if (ip.ip_v == 6) { in pktmnglr_ipfilter_input() 1095 if (ip->ip_v != 4) { in chksm_update()
|
| H A D | if_ipsec.c | 704 u_int ip_version = ip->ip_v; in ipsec_encrypt_mbuf() 1130 u_int ip_version = ip->ip_v; in ipsec_netif_check_policy() 1490 u_int ip_version = ip->ip_v; in ipsec_netif_sync_rx() 1721 u_int ip_version = ip->ip_v; in ipsec_netif_sync_rx() 3732 ip_version = ip->ip_v; in ipsec_output() 3956 ip_version = ip->ip_v; in ipsec_demux() 4090 if (ip->ip_v == 4) { in ipsec_proto_input() 4092 } else if (ip->ip_v == 6) { in ipsec_proto_input()
|
| H A D | nat464_utils.c | 512 ip4->ip_v = IPVERSION; in nat464_translate_icmp_ip() 668 ip4->ip_v = 4; in nat464_translate_64()
|
| H A D | if_stf.c | 405 if (ip.ip_v != 4) { in stf_encapcheck()
|
| H A D | if_gif.c | 530 switch (ip.ip_v) { in gif_encapcheck()
|
| H A D | if_utun.c | 2704 ip_version = ip->ip_v; in utun_demux()
|
| H A D | pf.c | 2706 h->ip_v = 4; in pf_send_tcp() 4444 ip4->ip_v = IPVERSION; in pf_change_icmp_af() 4711 ip4->ip_v = 4; in pf_nat64_ipv6()
|
| H A D | necp.c | 11311 if (ip->ip_v == 4) { in necp_is_loopback() 11318 } else if (ip->ip_v == 6) { in necp_is_loopback()
|
| /xnu-8019.80.24/bsd/netinet/ |
| H A D | ip.h | 96 ip_v:4; /* version */ 99 u_int ip_v:4, /* version */
|
| H A D | tcp_debug.c | 120 isipv6 = (ipgen != NULL && ((struct ip *)ipgen)->ip_v == 6) ? 1 : 0;
|
| H A D | ip_compat.h | 564 __u8 ip_v:4; 567 __u8 ip_v:4;
|
| H A D | tcp_log.c | 622 isipv6 = (((struct ip *)hdr)->ip_v == 6); in tcp_log_pkt_addresses()
|
| H A D | tcp_input.c | 1930 isipv6 = (mtod(m, struct ip *)->ip_v == 6) ? 1 : 0; in tcp_input() 2007 ip->ip_v = IPVERSION; in tcp_input()
|
| H A D | udp_usrreq.c | 2948 ip->ip_v = IPVERSION; in udp_fill_keepalive_offload_frames()
|
| /xnu-8019.80.24/bsd/net/classq/ |
| H A D | classq_util.c | 118 if (ip->ip_v != 4) { in read_dsfield() 171 if (ip->ip_v != 4) { in write_dsfield() 255 if (ip->ip_v != 4) { in mark_ecn()
|
| /xnu-8019.80.24/bsd/skywalk/nexus/flowswitch/ |
| H A D | fsw_ip.c | 63 (iph->ip_v == IPVERSION)) { in fsw_ip_demux()
|
| H A D | fsw_cellular.c | 64 (iph->ip_v == IPVERSION)) { in fsw_cellular_demux()
|
| H A D | fsw_dp.c | 3788 ip->ip_v = IPVERSION; in fsw_flow_abort_tcp() 3930 ip->ip_v = IPVERSION; in fsw_flow_abort_quic()
|
| /xnu-8019.80.24/bsd/skywalk/nexus/flowswitch/flow/ |
| H A D | flow_route.c | 1386 _flow_route_laddr_validate(struct flow_ip_addr *src_ip0, uint8_t ip_v, in _flow_route_laddr_validate() argument 1395 VERIFY(ip_v == IPVERSION || ip_v == IPV6_VERSION); in _flow_route_laddr_validate() 1397 if (ip_v == IPVERSION) { in _flow_route_laddr_validate() 1424 if (ip_v == IPV6_VERSION) { in _flow_route_laddr_validate()
|
| H A D | flow_classifier.c | 215 CL_SKIP_ON(iph->ip_v != IPVERSION); in flow_pkt_classify()
|
| H A D | flow_agg.c | 100 .ip_v = 0xf, 972 ASSERT(siph->ip_v == IPVERSION); in can_agg_slowpath()
|
| /xnu-8019.80.24/osfmk/kdp/ |
| H A D | kdp_udp.c | 168 #define ip_v ip_vhltl.ip_x.ip_xv macro 587 ip->ip_v = IPVERSION; in kdp_reply() 664 ip->ip_v = IPVERSION; in kdp_send() 1554 ip->ip_v = IPVERSION; in create_panic_header()
|
| /xnu-8019.80.24/tests/ |
| H A D | ipsec.m | 471 ipheader->ip_v = IPVERSION;
|
| H A D | net_bridge.c | 828 T_ASSERT_EQ(ip_udp->ip.ip_v, IPVERSION, NULL); in ip_frame_validate() 1032 ip_udp->ip.ip_v = IPVERSION; in ethernet_udp4_frame_populate() 1236 T_ASSERT_EQ((int)ip_udp->ip.ip_v, IPVERSION, NULL); in ethernet_frame_get_udp4_payload()
|
| /xnu-8019.80.24/bsd/netinet6/ |
| H A D | ipsec.c | 1173 v = ip->ip_v; in ipsec_setspidx() 2522 ip->ip_v = IPVERSION; in ipsec64_encapsulate() 5079 ip->ip_v = IPVERSION; in ipsec_fill_offload_frame()
|