| /xnu-12377.1.9/bsd/net/ |
| H A D | packet_mangler.c | 722 if ((p_pkt_mnglr->lsaddr.ss_family == AF_INET6) && (ip.ip_v == 4)) { in pktmnglr_ipfilter_output() 726 if ((p_pkt_mnglr->lsaddr.ss_family == AF_INET) && (ip.ip_v == 6)) { in pktmnglr_ipfilter_output() 744 if (ip.ip_v != 4) { in pktmnglr_ipfilter_output() 747 __func__, __LINE__, ip.ip_v); in pktmnglr_ipfilter_output() 794 if (ip.ip_v == 6) { in pktmnglr_ipfilter_input() 802 if ((p_pkt_mnglr->lsaddr.ss_family == AF_INET6) && (ip.ip_v == 4)) { in pktmnglr_ipfilter_input() 808 if ((p_pkt_mnglr->lsaddr.ss_family == AF_INET) && (ip.ip_v == 6)) { in pktmnglr_ipfilter_input() 841 if (ip.ip_v == 4) { in pktmnglr_ipfilter_input() 843 } else if (ip.ip_v == 6) { in pktmnglr_ipfilter_input() 1048 if (ip->ip_v != 4) { in chksm_update()
|
| H A D | if_ipsec.c | 712 u_int ip_vers = ip->ip_v; in ipsec_encrypt_kpipe_pkt() 1052 u_int ip_version = ip->ip_v; in ipsec_netif_check_policy() 1390 u_int ip_vers = ip->ip_v; in ipsec_transform_kpipe_pkt_to_netif_pkt() 1545 u_int ip_version = ip->ip_v; in ipsec_netif_sync_rx() 3656 ip_version = ip->ip_v; in ipsec_output() 3888 ip_version = ip->ip_v; in ipsec_demux() 4039 if (ip->ip_v == 4) { in ipsec_proto_input() 4041 } else if (ip->ip_v == 6) { in ipsec_proto_input()
|
| H A D | nat464_utils.c | 524 ip4->ip_v = IPVERSION; in nat464_translate_icmp_ip() 680 ip4->ip_v = 4; in nat464_translate_64()
|
| H A D | if_stf.c | 403 if (ip.ip_v != 4) { in stf_encapcheck()
|
| H A D | if_gif.c | 526 switch (ip.ip_v) { in gif_encapcheck()
|
| H A D | if_redirect.c | 1860 ip_version = ip->ip_v; in redirect_demux()
|
| /xnu-12377.1.9/bsd/netinet/ |
| H A D | ip.h | 96 ip_v:4; /* version */ 99 u_int ip_v:4, /* version */
|
| H A D | ip_compat.h | 564 __u8 ip_v:4; 567 __u8 ip_v:4;
|
| H A D | udp_log.c | 461 isipv6 = (((struct ip *)hdr)->ip_v == 6); in udp_log_pkt_addresses()
|
| H A D | tcp_log.c | 693 isipv6 = (((struct ip *)hdr)->ip_v == 6); in tcp_log_pkt_addresses()
|
| /xnu-12377.1.9/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-12377.1.9/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()
|
| /xnu-12377.1.9/bsd/skywalk/nexus/flowswitch/flow/ |
| H A D | flow_route.c | 1392 _flow_route_laddr_validate(struct flow_ip_addr *src_ip0, uint8_t ip_v, in _flow_route_laddr_validate() argument 1401 VERIFY(ip_v == IPVERSION || ip_v == IPV6_VERSION); in _flow_route_laddr_validate() 1403 if (ip_v == IPVERSION) { in _flow_route_laddr_validate() 1430 if (ip_v == IPV6_VERSION) { in _flow_route_laddr_validate()
|
| H A D | flow_classifier.c | 222 CL_SKIP_ON(iph->ip_v != IPVERSION); in flow_pkt_classify()
|
| H A D | flow_track.c | 876 ip->ip_v = IPVERSION; in flow_track_abort_tcp() 1016 ip->ip_v = IPVERSION; in flow_track_abort_quic()
|
| H A D | flow_agg.c | 128 .ip_v = 0xf, 1053 ASSERT(siph->ip_v == IPVERSION); in can_agg_slowpath()
|
| /xnu-12377.1.9/osfmk/kdp/ |
| H A D | kdp_udp.c | 170 #define ip_v ip_vhltl.ip_x.ip_xv macro 589 ip->ip_v = IPVERSION; in kdp_reply() 666 ip->ip_v = IPVERSION; in kdp_send() 1556 ip->ip_v = IPVERSION; in create_panic_header()
|
| /xnu-12377.1.9/bsd/skywalk/nexus/ |
| H A D | nexus_traffic_rule_inet.c | 200 ipv = iph->ip_v; in fill_inet_td()
|
| /xnu-12377.1.9/tests/ |
| H A D | ipsec.m | 480 ipheader->ip_v = IPVERSION;
|
| H A D | net_test_lib.c | 278 ip_udp->ip.ip_v = IPVERSION; in ethernet_udp4_frame_populate()
|
| H A D | net_bridge.c | 409 T_ASSERT_EQ((u_int)ip_udp->ip.ip_v, IPVERSION, NULL); in ip_frame_validate() 685 T_ASSERT_EQ((int)ip_udp->ip.ip_v, IPVERSION, NULL); in ethernet_frame_get_udp4_payload()
|
| /xnu-12377.1.9/tests/skywalk/ |
| H A D | skt_xfer.c | 467 assert(ip_udp->ip.ip_v == IPVERSION); in ip_frame_dump() 584 ip_tcp->ip.ip_v = IPVERSION; in tcp_frame_populate() 674 ip_udp->ip.ip_v = IPVERSION; in udp_frame_populate() 734 ip->ip_v = IPVERSION; in ip_frame_populate()
|
| H A D | skywalk_test_utils.c | 2265 switch (ip->ip_v) { in sktu_utun_fd_tx_burst() 2347 ip->ip_v = IPVERSION; in sktu_create_ip_frames()
|
| /xnu-12377.1.9/bsd/netinet6/ |
| H A D | ipsec.c | 1168 v = ip->ip_v; in ipsec_setspidx() 2500 ip->ip_v = IPVERSION; in ipsec64_encapsulate() 5460 ip->ip_v = IPVERSION; in ipsec_fill_offload_frame()
|