Home
last modified time | relevance | path

Searched refs:af (Results 1 – 25 of 68) sorted by relevance

123

/xnu-11215/tests/
H A Dinet_transfer.c97 addr->sa.sa_family = af; in inet_sockaddr_init()
98 if (af == AF_INET) { in inet_sockaddr_init()
111 if (endpoint->af == AF_INET) { in inet_sockaddr_init_with_endpoint()
156 switch (node->af) { in inet_endpoint_is_valid()
182 af_get_string(uint8_t af) in af_get_string() argument
200 if (af == AF_INET) { in socket_bind_to_interface()
304 if (endpoint->af == AF_INET) { in inet_socket_init_server()
638 endpoint.af = af; in inet_test_traffic()
724 if (endpoint.af != 0) { in main()
731 endpoint.af = AF_INET; in main()
[all …]
H A Dinet_transfer.h41 af_get_str(uint8_t af) in af_get_str() argument
43 return (af == AF_INET) ? "IPv4" : "IPv6"; in af_get_str()
71 uint8_t af; member
83 inet_test_traffic(uint8_t af, inet_address_t server,
H A Dnet_bridge.c208 switch (af) { in get_ip_address()
226 switch (af) { in ip_addresses_are_equal()
259 switch (af) { in get_external_ip_address()
279 switch (af) { in get_broadcast_ip_address()
314 switch (af) { in inet_ptrtop()
1048 af, in switch_port_send_udp()
1685 af, in bridge_learning_test_once()
1693 af, in bridge_learning_test_once()
2356 af, in mac_nat_send_response()
2402 af, in mac_nat_test_ip_once()
[all …]
H A Dnet_vlan.c211 uint8_t af) in test_traffic_for_network_interfaces() argument
217 if (af == AF_INET) { in test_traffic_for_network_interfaces()
222 inet_test_traffic(af, &server, one->if_name, one->if_index, in test_traffic_for_network_interfaces()
227 test_traffic_for_pair(network_interface_pair_t pair, uint8_t af) in test_traffic_for_pair() argument
229 test_traffic_for_network_interfaces(&pair->one, &pair->two, af); in test_traffic_for_pair()
233 test_traffic_for_af(uint8_t af) in test_traffic_for_af() argument
235 test_traffic_for_pair(S_feth_pairs->list, af); in test_traffic_for_af()
241 test_traffic_for_pair(pair, af); in test_traffic_for_af()
H A Dnet_bond.c188 test_traffic_for_pair(network_interface_pair_t pair, uint8_t af) in test_traffic_for_pair() argument
194 if (af == AF_INET) { in test_traffic_for_pair()
199 inet_test_traffic(af, &server, pair->one.if_name, pair->one.if_index, in test_traffic_for_pair()
204 test_traffic_for_af(uint8_t af) in test_traffic_for_af() argument
206 test_traffic_for_pair(&S_bond_pair, af); in test_traffic_for_af()
212 test_traffic_for_pair(pair, af); in test_traffic_for_af()
/xnu-11215/bsd/net/
H A Dpf.c1357 k.af = af; in pf_insert_src_node()
1384 (*sn)->af = af; in pf_insert_src_node()
3321 k.af = af; in pf_map_addr()
3387 ASSERT(af == rpool->af); in pf_map_addr()
3532 sa_family_t af = pd->af; in pf_get_sport() local
3794 } else if (r->af && r->af != pd->af) { in pf_match_translation()
5273 } else if (r->af && r->af != pd->af) { in pf_test_rule()
5405 pd->af = af; in pf_test_rule()
6304 } else if (r->af && r->af != af) { in pf_test_dummynet()
6514 } else if (r->af && r->af != af) { in pf_test_fragment()
[all …]
H A Dpf_if.c281 switch (af) { in pfi_match_addr()
374 dyn->pfid_af = af; in pfi_dynaddr_setup()
451 uint8_t net2, af; in pfi_instance_add() local
464 if (af != AF_INET && af != AF_INET6) { in pfi_instance_add()
482 if ((af == AF_INET6) && in pfi_instance_add()
488 if ((af == AF_INET6) && in pfi_instance_add()
505 if (af == AF_INET) { in pfi_instance_add()
512 if (af == AF_INET) { in pfi_instance_add()
567 p->pfra_af = af; in pfi_address_add()
569 if (af == AF_INET) { in pfi_address_add()
[all …]
H A Droute.c589 VERIFY(af == AF_INET || af == AF_INET6); in sa_copy()
649 VERIFY(af == AF_INET || af == AF_INET6); in ma_copy()
749 uint8_t skip, af; in rtm_scrub() local
765 ((af = hint->sa_family) != AF_INET && af != AF_INET6)) { in rtm_scrub()
1470 if ((af == AF_INET) || (af == AF_INET6)) { in rtredirect()
1933 (af != AF_INET && af != AF_INET6)) { in rtrequest_common_locked()
2170 if (af != AF_INET && af != AF_INET6) { in rtrequest_common_locked()
2252 switch (af) { in rtrequest_common_locked()
3035 if (af != AF_INET && af != AF_INET6) { in node_lookup()
3072 VERIFY(af == AF_INET || af == AF_INET6); in node_lookup_default()
[all …]
H A Dpf_table.c113 #define SUNION2PF(su, af) (((af) == AF_INET) ? \ argument
117 #define AF_BITS(af) (((af) == AF_INET) ? 32 : 128) argument
1072 if (af == AF_INET) { in pfr_prepare_network()
2251 switch (af) { in pfr_match_addr()
2293 switch (af) { in pfr_update_stats()
2392 if (af == AF_INET) { in pfr_pool_get()
2438 PF_ACPY(addr, *raddr, af); in pfr_pool_get()
2450 if (af == AF_INET) { in pfr_pool_get()
2470 PF_POOLMASK(addr, addr, SUNION2PF(&mask, af), &pfr_ffaddr, af); in pfr_pool_get()
2471 PF_AINC(addr, af); in pfr_pool_get()
[all …]
H A Dnat464_utils.c489 struct nat464_addr *dst, protocol_family_t af, protocol_family_t naf) in nat464_translate_icmp_ip() argument
497 if (af == naf || (af != AF_INET && af != AF_INET6) || in nat464_translate_icmp_ip()
785 struct nat464_addr *odst, uint8_t oproto, protocol_family_t af, in nat464_translate_proto() argument
798 VERIFY(af != naf); in nat464_translate_proto()
799 VERIFY(af == PF_INET || af == PF_INET6); in nat464_translate_proto()
875 uh->uh_sum == 0 && af == PF_INET && naf == PF_INET6) { in nat464_translate_proto()
920 af, naf, (*proto == IPPROTO_UDP) ? 1 : 0, do_ones_complement); in nat464_translate_proto()
922 af, naf, (*proto == IPPROTO_UDP) ? 1 : 0, do_ones_complement); in nat464_translate_proto()
1139 protocol_family_t af, protocol_family_t naf, uint8_t u, boolean_t do_ones_complement) in nat464_addr_cksum_fixup() argument
1142 VERIFY(af != naf); in nat464_addr_cksum_fixup()
[all …]
H A Dif_llreach.c404 ifnet_llreach_get_defrouter(struct ifnet *ifp, sa_family_t af, in ifnet_llreach_get_defrouter() argument
413 (af == AF_INET || af == AF_INET6)); in ifnet_llreach_get_defrouter()
417 if ((rnh = rt_tables[af]) == NULL) { in ifnet_llreach_get_defrouter()
423 dst_ss.ss_family = af; in ifnet_llreach_get_defrouter()
424 dst_ss.ss_len = (af == AF_INET) ? sizeof(struct sockaddr_in) : in ifnet_llreach_get_defrouter()
H A Dif_pflog.c346 pflog_packet(struct pfi_kif *kif, pbuf_t *pbuf, sa_family_t af, u_int8_t dir, in pflog_packet() argument
372 hdr.af = af; in pflog_packet()
402 if (af == AF_INET && dir == PF_OUT) { in pflog_packet()
/xnu-11215/tests/skywalk/
H A Dskt_flow.c54 skt_flow_add_del(bool expect_success, sa_family_t af, in skt_flow_add_del() argument
59 flow = sktu_create_nexus_flow(&handles, af, src, dst, protocol, sport, dport); in skt_flow_add_del()
70 skt_flow_req_should_success(sa_family_t af, void *src, void *dst, in skt_flow_req_should_success() argument
73 skt_flow_add_del(true, af, src, dst, protocol, sport, dport); in skt_flow_req_should_success()
77 skt_flow_req_should_fail(sa_family_t af, void *src, void *dst, in skt_flow_req_should_fail() argument
80 skt_flow_add_del(false, af, src, dst, protocol, sport, dport); in skt_flow_req_should_fail()
84 skt_flow_req_low_latency(sa_family_t af, void *src, void *dst, in skt_flow_req_low_latency() argument
91 regular_flow_0 = sktu_create_nexus_flow(&handles, af, src, dst, in skt_flow_req_low_latency()
98 regular_flow_1 = sktu_create_nexus_flow(&handles, af, src, dst, in skt_flow_req_low_latency()
110 af, src, dst, protocol, sport, dport); in skt_flow_req_low_latency()
[all …]
H A Dskt_mpprotons.c56 skt_flow_req_should_succeed(sa_family_t af, void *src, void *dst, in skt_flow_req_should_succeed() argument
61 flow = sktu_create_nexus_flow(&handles, af, src, dst, protocol, sport, dport); in skt_flow_req_should_succeed()
66 skt_flow_req_should_fail(sa_family_t af, void *src, void *dst, in skt_flow_req_should_fail() argument
71 flow = sktu_create_nexus_flow(&handles, af, src, dst, protocol, sport, dport); in skt_flow_req_should_fail()
H A Dskt_reass.c284 uint32_t af = ntohl(*(uint32_t *)pkt_out); in bad_fraglen_match() local
286 if (af != AF_INET6) { in bad_fraglen_match()
291 scan += sizeof(af); in bad_fraglen_match()
358 uint32_t af = ntohl(*(uint32_t *)pkt_out); in timeout_match() local
360 if (af != AF_INET6) { in timeout_match()
365 scan += sizeof(af); in timeout_match()
459 uint32_t af = ntohl(*(uint32_t *)pkt_out); in atomic_match() local
461 if (af != AF_INET6) { in atomic_match()
466 scan += sizeof(af); in atomic_match()
/xnu-11215/bsd/netinet/
H A Dip_encap.c170 if (ep->af != AF_INET) { in encap4_input()
261 if (ep->af != AF_INET6) { in encap6_input()
318 encap_attach(int af, int proto, const struct sockaddr *sp, in encap_attach() argument
335 if (af != sp->sa_family || af != dp->sa_family) { in encap_attach()
345 if (ep->af != af) { in encap_attach()
366 new_ep->af = af; in encap_attach()
391 encap_attach_func( int af, int proto, in encap_attach_func() argument
406 ep->af = af; in encap_attach_func()
457 if (sp->sa_family != ep->af || dp->sa_family != ep->af) { in mask_match()
H A Dtcp_cache.c132 int af; member
415 tcks->af = AF_INET6; in tcp_cache_key_src_create()
419 tcks->af = AF_INET; in tcp_cache_key_src_create()
432 tcks->af = AF_INET; in mptcp_version_cache_key_src_init()
435 tcks->af = AF_INET6; in mptcp_version_cache_key_src_init()
1392 tcks.af = AF_INET6; in tcp_heuristic_do_ecn_with_address()
1395 tcks.af = AF_INET; in tcp_heuristic_do_ecn_with_address()
1414 tcks.af = AF_INET6; in tcp_heuristics_ecn_update()
1417 tcks.af = AF_INET; in tcp_heuristics_ecn_update()
1456 tcks.af = AF_INET; in tcp_heuristic_do_tfo_with_address()
[all …]
H A Din_gif.c243 int af, proto; in in_gif_input() local
267 af = AF_INET; in in_gif_input()
295 af = AF_INET6; in in_gif_input()
332 gif_input(m, af, gifp); in in_gif_input()
/xnu-11215/bsd/skywalk/nexus/flowswitch/
H A Dfsw_ip.c52 sa_family_t af = AF_UNSPEC; in fsw_ip_demux() local
64 af = AF_INET; in fsw_ip_demux()
68 af = AF_INET6; in fsw_ip_demux()
76 return af; in fsw_ip_demux()
H A Dfsw_cellular.c53 sa_family_t af = AF_UNSPEC; in fsw_cellular_demux() local
65 af = AF_INET; in fsw_cellular_demux()
69 af = AF_INET6; in fsw_cellular_demux()
77 return af; in fsw_cellular_demux()
/xnu-11215/bsd/net/classq/
H A Dclassq_util.c216 int af; in mark_ecn() local
237 af = AF_INET; in mark_ecn()
239 af = AF_INET6; in mark_ecn()
241 af = AF_UNSPEC; in mark_ecn()
244 switch (af) { in mark_ecn()
/xnu-11215/bsd/netinet6/
H A Desp_output.c243 int af, in esp_output() argument
270 switch (af) { in esp_output()
289 switch (af) { in esp_output()
310 switch (af) { in esp_output()
394 switch (af) { in esp_output()
550 switch (af) { in esp_output()
624 switch (af) { in esp_output()
739 switch (af) { in esp_output()
871 switch (af) { in esp_output()
895 switch (af) { in esp_output()
[all …]
/xnu-11215/bsd/skywalk/nexus/netif/
H A Dnx_netif_host.c402 int af; in get_af_from_mbuf() local
413 af = AF_UNSPEC; in get_af_from_mbuf()
418 af = AF_INET; in get_af_from_mbuf()
420 af = AF_INET6; in get_af_from_mbuf()
422 af = AF_UNSPEC; in get_af_from_mbuf()
425 DTRACE_SKYWALK2(mbuf__af, int, af, struct mbuf *, m); in get_af_from_mbuf()
426 return af; in get_af_from_mbuf()
527 int af = get_af_from_mbuf(m); in nx_netif_host_output() local
529 if (af != AF_UNSPEC) { in nx_netif_host_output()
530 nx_netif_pktap_output(ifp, af, kpkt); in nx_netif_host_output()
/xnu-11215/bsd/skywalk/nexus/flowswitch/flow/
H A Dflow_namespace.c50 sa_family_t af = laddr->sa.sa_family; in flow_namespace_create() local
90 switch (af) { in flow_namespace_create()
/xnu-11215/libkern/net/
H A Dinet_pton.c49 inet_pton(int af, const char *src, void *dst) in inet_pton() argument
51 switch (af) { in inet_pton()

123