| /xnu-12377.1.9/tests/ |
| H A D | so_bindtodevice.c | 58 int boundif_level = domain == PF_INET ? IPPROTO_IP : IPPROTO_IPV6; in test_so_bindtodevice() 59 int boundif_name = domain == PF_INET ? IP_BOUND_IF : IPV6_BOUND_IF; in test_so_bindtodevice() 60 const char *boundif_str = domain == PF_INET ? "IP_BOUND_IF" : "IPV6_BOUND_IF"; in test_so_bindtodevice() 165 test_so_bindtodevice(PF_INET, SOCK_STREAM, 0); 175 test_so_bindtodevice(PF_INET, SOCK_DGRAM, 0); 185 test_so_bindtodevice(PF_INET, SOCK_DGRAM, IPPROTO_ICMP); 195 test_so_bindtodevice(PF_INET, SOCK_RAW, 0);
|
| H A D | udp_kao_opt.c | 76 if (domain == PF_INET) { in set_udp_kao_opt() 115 if (domain == PF_INET) { in set_udp_kao_opt() 138 SET_UDP_KAO_OPT(0, PF_INET, SOCK_DGRAM, 0); 139 SET_UDP_KAO_OPT(0, PF_INET, SOCK_DGRAM, IPPROTO_UDP); 140 SET_UDP_KAO_OPT(EINVAL, PF_INET, SOCK_DGRAM, IPPROTO_ICMP); 141 SET_UDP_KAO_OPT(EINVAL, PF_INET, SOCK_STREAM, 0);
|
| H A D | accept_race.c | 24 int sock = socket(PF_INET, SOCK_STREAM, 0); in client() 46 int sock = socket(PF_INET, SOCK_STREAM, 0); in server()
|
| H A D | ifnet_overflow.c | 12 fd = socket(PF_INET, SOCK_STREAM, 0); in create_interfaces()
|
| H A D | socket_bind_35685803.c | 36 return sock_open_common(PF_INET, type); in sock_open()
|
| /xnu-12377.1.9/bsd/net/ |
| H A D | nat464_utils.c | 511 hlen = naf == PF_INET ? sizeof(*ip4) : sizeof(*ip6); in nat464_translate_icmp_ip() 805 VERIFY(af == PF_INET || af == PF_INET6); in nat464_translate_proto() 812 case PF_INET: { in nat464_translate_proto() 859 if (naf != PF_INET) { in nat464_translate_proto() 881 uh->uh_sum == 0 && af == PF_INET && naf == PF_INET6) { in nat464_translate_proto() 981 PF_INET, PF_INET6) != 0) { in nat464_translate_proto() 986 case PF_INET: in nat464_translate_proto() 1009 { if (naf != PF_INET) { /* allow only v4 as naf for ICMPV6 */ in nat464_translate_proto() 1024 if (nat464_translate_icmp(PF_INET, icmp6h) != 0) { in nat464_translate_proto() 1050 PF_INET6, PF_INET) != 0) { in nat464_translate_proto() [all …]
|
| H A D | dlil_output.c | 143 if (proto_family == PF_INET && IS_INTF_CLAT46(ifp) && in dlil_output() 155 ASSERT(proto_family == PF_INET); in dlil_output() 273 if (proto_family == PF_INET && IS_INTF_CLAT46(ifp) && in dlil_output() 702 case PF_INET: in dlil_output_cksum_dbg() 735 if (proto_family == PF_INET) { in dlil_output_dtrace()
|
| H A D | dlil_subr.c | 639 case PF_INET: { in dlil_is_clat_needed() 675 VERIFY(*proto_family == PF_INET); in dlil_clat46() 791 proto, PF_INET, PF_INET6, NT_OUT, !is_first_frag) == NT_NAT64) ? 0 : -1; in dlil_clat46() 951 (struct nat464_addr *)&odst, proto, PF_INET6, PF_INET, in dlil_clat64() 974 *proto_family = PF_INET; in dlil_clat64()
|
| H A D | if_ports_used.c | 1133 inet_ntop(PF_INET, &npi->npi_local_addr_in.s_addr, in net_port_info_log_npi() 1135 inet_ntop(PF_INET, &npi->npi_foreign_addr_in.s_addr, in net_port_info_log_npi() 1313 inet_ntop(PF_INET, &ev->una_wake_pkt_local_addr_._in_a_4.s_addr, in net_port_info_log_una_wake_event() 1315 inet_ntop(PF_INET, &ev->una_wake_pkt_foreign_addr_._in_a_4.s_addr, in net_port_info_log_una_wake_event() 1342 inet_ntop(PF_INET, &ev->wake_pkt_local_addr_._in_a_4.s_addr, in net_port_info_log_wake_event() 1344 inet_ntop(PF_INET, &ev->wake_pkt_foreign_addr_._in_a_4.s_addr, in net_port_info_log_wake_event() 1844 if (proto_family == PF_INET) { in if_ports_used_match_mbuf() 2673 } else if (protocol_family == PF_INET) { in check_wake_mbuf()
|
| H A D | pf_osfp.c | 94 if ((pd->af != PF_INET && pd->af != PF_INET6) || in pf_osfp_fingerprint() 100 if (pd->af == PF_INET) { in pf_osfp_fingerprint()
|
| H A D | dlil_input.c | 636 case PF_INET: in dlil_input_cksum_dbg() 752 if ((protocol_family == PF_INET || protocol_family == PF_INET6) && in dlil_input_process_wake_packet() 875 if (protocol_family == PF_INET && IS_INTF_CLAT46(ifp) && in dlil_input_packet_list_common() 912 if (protocol_family != PF_INET) { in dlil_input_packet_list_common() 952 if (protocol_family != PF_INET && protocol_family != PF_INET6) { in dlil_input_packet_list_common()
|
| H A D | if_utun.c | 1681 if ((result = proto_register_plumber(PF_INET, IFNET_FAMILY_UTUN, in utun_register_control() 1692 proto_unregister_plumber(PF_INET, IFNET_FAMILY_UTUN); in utun_register_control() 2015 if (protocol == PF_INET) { in utun_detach_ip() 2045 if (protocol == PF_INET) { in utun_remove_address() 2089 if (protocol != PF_INET && protocol != PF_INET6) { in utun_cleanup_family() 2099 protocol == PF_INET ? "IP" : "IPv6", result); in utun_cleanup_family() 2125 protocol == PF_INET ? "PF_INET" : "PF_INET6", result); in utun_cleanup_family() 2977 *protocol = PF_INET; in utun_demux() 3052 case PF_INET: in utun_add_proto()
|
| /xnu-12377.1.9/bsd/netinet/ |
| H A D | in_proto.c | 274 .dom_family = PF_INET, 317 i = proto_register_input(PF_INET, ip_proto_input, NULL, 1); in in_dinit() 326 SYSCTL_NODE(_net, PF_INET, inet,
|
| H A D | in_pcblist.c | 539 if (protocol == PF_INET) { in inpcb_get_if_ports_used() 607 if (protocol == PF_INET) { in inpcb_get_if_ports_used() 608 inet_ntop(PF_INET, &inp->inp_laddr.s_addr, in inpcb_get_if_ports_used() 610 inet_ntop(PF_INET, &inp->inp_faddr.s_addr, in inpcb_get_if_ports_used() 704 if (protocol == PF_INET) { in inpcb_get_if_ports_used() 705 inet_ntop(PF_INET, &inp->inp_laddr.s_addr, in inpcb_get_if_ports_used() 707 inet_ntop(PF_INET, &inp->inp_faddr.s_addr, in inpcb_get_if_ports_used() 890 if (SOCK_DOM(so) != PF_INET && SOCK_DOM(so) != PF_INET6) { in shutdown_sockets_on_interface_proc_callout()
|
| H A D | tcp_ccdbg.c | 99 ((SOCK_DOM(inp->inp_socket) == PF_INET) ? in tcp_ccdbg_trace() 105 ((SOCK_DOM(inp->inp_socket) == PF_INET) ? in tcp_ccdbg_trace()
|
| H A D | in_tclass.c | 521 if (SOCK_DOM(so) != PF_INET && SOCK_DOM(so) != PF_INET6) { in set_pid_tclass() 878 case PF_INET: { in so_get_netsvc_marking_level() 942 if ((SOCK_DOM(so) == PF_INET || in so_set_traffic_class() 948 if ((SOCK_DOM(so) == PF_INET || in so_set_traffic_class() 997 if ((SOCK_DOM(so) == PF_INET || SOCK_DOM(so) == PF_INET6)) { in so_set_default_traffic_class() 1087 VERIFY((SOCK_CHECK_DOM(so, PF_INET) || in set_tcp_stream_priority()
|
| H A D | in.c | 285 if ((error = proto_plumb(PF_INET, ifp)) && error != EEXIST) { in in_domifattach() 704 (void)ifnet_ioctl(ifp, PF_INET, SIOCDIFADDR, ia); in inctl_ifaddr() 806 error = ifnet_ioctl(ifp, PF_INET, SIOCSIFADDR, ifa); in inctl_ifaddr() 878 error = ifnet_ioctl(ifp, PF_INET, SIOCSIFDSTADDR, ia); in inctl_ifdstaddr() 1227 return (ifa == NULL) ? proto_unplumb(PF_INET, ifp) : EBUSY; in in_control() 1693 error = ifnet_ioctl(ifp, PF_INET, cmd, ia); in in_ifinit() 1711 error = ifnet_ioctl(ifp, PF_INET, SIOCSIFADDR, ifa0); in in_ifinit()
|
| H A D | kpi_ipfilter.c | 336 proto = PF_INET; in ipf_inject_input() 351 case PF_INET: in ipf_inject_input()
|
| /xnu-12377.1.9/bsd/kern/ |
| H A D | uipc_socket.c | 428 if (SOCK_DOM(so) == PF_INET || SOCK_DOM(so) == PF_INET6) { in so_update_policy() 438 if (SOCK_DOM(so) == PF_INET || SOCK_DOM(so) == PF_INET6) { in so_update_necp_policy() 514 case PF_INET: in socreate_internal() 2599 bool skip_filt = (SOCK_DOM(so) != PF_INET && SOCK_DOM(so) != PF_INET6) || (flags & MSG_SKIPCFIL); in sosend_list() 5026 if (SOCK_DOM(so) != PF_INET && in sosetoptlock() 5229 if (SOCK_DOM(so) == PF_INET || in sosetoptlock() 5243 ((SOCK_DOM(so) == PF_INET) ? in sosetoptlock() 5248 (SOCK_DOM(so) == PF_INET) ? in sosetoptlock() 5334 if (SOCK_DOM(so) != PF_INET && SOCK_DOM(so) != PF_INET6) { in sosetoptlock() 5348 if (SOCK_DOM(so) != PF_INET && SOCK_DOM(so) != PF_INET6) { in sosetoptlock() [all …]
|
| H A D | socket_info.c | 129 case PF_INET: in fill_socketinfo()
|
| H A D | kpi_socket.c | 640 case PF_INET: in sock_settclassopt() 683 case PF_INET: in sock_gettclassopt() 1259 if ((SOCK_DOM(sock) == PF_INET || SOCK_DOM(sock) == PF_INET6) && in sock_set_tcp_stream_priority()
|
| /xnu-12377.1.9/bsd/skywalk/namespace/ |
| H A D | netns.c | 1816 if (protocol == PF_INET) { in netns_local_port_scan_flow_entry() 1861 if (protocol == PF_INET) { in netns_local_port_scan_flow_entry() 1862 sk_ntop(PF_INET, &nfi->nfi_laddr.sin.sin_addr, in netns_local_port_scan_flow_entry() 1864 sk_ntop(PF_INET, &nfi->nfi_faddr.sin.sin_addr, in netns_local_port_scan_flow_entry() 1900 if (protocol == PF_INET) { in netns_local_port_scan_flow_entry() 1901 sk_ntop(PF_INET, &nfi->nfi_laddr.sin.sin_addr, in netns_local_port_scan_flow_entry() 1903 sk_ntop(PF_INET, &nfi->nfi_faddr.sin.sin_addr, in netns_local_port_scan_flow_entry()
|
| /xnu-12377.1.9/tests/skywalk/ |
| H A D | skt_flowswitch_ns_reserve.c | 134 pf = PF_INET; in skt_flowswitch_ns_bsd() 251 pf = PF_INET; in skt_flowswitch_ns_sky() 975 sock = socket(PF_INET, in skt_flowswitch_ns_reserve_main() 1027 sock = socket(PF_INET, (nfr.nfr_ip_protocol == IPPROTO_TCP) ? in skt_flowswitch_ns_reserve_main() 1065 sock = socket(PF_INET, (nfr.nfr_ip_protocol == IPPROTO_TCP) ? in skt_flowswitch_ns_reserve_main()
|
| /xnu-12377.1.9/bsd/security/audit/ |
| H A D | audit_bsm_domain.c | 49 { .bd_bsm_domain = BSM_PF_INET, .bd_local_domain = PF_INET },
|
| /xnu-12377.1.9/bsd/netinet6/ |
| H A D | esp_input.c | 737 if (proto_input(ifamily == AF_INET ? PF_INET : PF_INET6, m) != 0) { in esp4_input_extended() 857 if_ports_used_match_mbuf(ipsec_if, PF_INET, m); in esp4_input_extended() 880 if_ports_used_match_mbuf(m->m_pkthdr.rcvif, PF_INET, m); in esp4_input_extended() 1433 if (proto_input(ifamily == AF_INET ? PF_INET : PF_INET6, m) != 0) { in esp6_input_extended() 1580 if_ports_used_match_mbuf(m->m_pkthdr.rcvif, PF_INET, m); in esp6_input_extended()
|