Home
last modified time | relevance | path

Searched refs:our_ip (Results 1 – 9 of 9) sorted by relevance

/xnu-11417.121.6/tests/skywalk/
H A Dskt_mpprotons.c48 static struct in_addr our_ip, dst_ip, zero_ip, nowhere_ip; variable
80 our_ip = sktc_feth0_in_addr(); in skt_protons_main()
87 handles.netif_addr = our_ip; in skt_protons_main()
91 skt_flow_req_should_fail(AF_INET, &our_ip, &dst_ip, IPPROTO_TCP, 0, 0); in skt_protons_main()
92 skt_flow_req_should_fail(AF_INET, &our_ip, &dst_ip, IPPROTO_UDP, 0, 0); in skt_protons_main()
93 skt_flow_req_should_fail(AF_INET, &our_ip, &dst_ip, IPPROTO_TTP, 1, 0); in skt_protons_main()
94 skt_flow_req_should_fail(AF_INET, &our_ip, &dst_ip, IPPROTO_TTP, 0, 1); in skt_protons_main()
95 skt_flow_req_should_fail(AF_INET, &our_ip, &dst_ip, IPPROTO_TTP, 1, 1); in skt_protons_main()
96 skt_flow_req_should_fail(AF_INET, &our_ip, &dst_ip, IPPROTO_RAW, 0, 0); in skt_protons_main()
98 skt_flow_req_should_succeed(AF_INET, &our_ip, &dst_ip, IPPROTO_TTP, 0, 0); in skt_protons_main()
[all …]
H A Dskt_listener.c49 struct in_addr our_ip, our_mask, peer_ip, zero_ip; variable
115 our_ip = sktc_feth0_in_addr(); in skt_listener_main()
122 handles.netif_addr = our_ip; in skt_listener_main()
140 no_flow = sktu_create_nexus_flow(&handles, AF_INET, &our_ip, &zero_ip, IPPROTO_TCP, our_port, 0); in skt_listener_main()
148 skt_listener_test_socket_listen(false, &our_ip, &our_port); in skt_listener_main()
149 inet_ntop(AF_INET, &our_ip.s_addr, sa_buf, sizeof(sa_buf)); in skt_listener_main()
153 …connection_1 = sktu_create_nexus_flow(&handles, AF_INET, &our_ip, &peer_ip, IPPROTO_TCP, our_port,… in skt_listener_main()
157 …connection_2 = sktu_create_nexus_flow(&handles, AF_INET, &our_ip, &peer_ip, IPPROTO_TCP, our_port,… in skt_listener_main()
161 …no_flow = sktu_create_nexus_flow(&handles, AF_INET, &our_ip, &peer_ip, IPPROTO_TCP, our_port, peer… in skt_listener_main()
173 listener = sktu_create_nexus_flow(&handles, AF_INET, &our_ip, &zero_ip, IPPROTO_TCP, 0, 0); in skt_listener_main()
[all …]
H A Dskt_flow.c48 struct in_addr our_ip, dst_ip, zero_ip, nowhere_ip, multicast_ip, lo_ip; variable
139 our_ip = sktc_feth0_in_addr(); in skt_flow_req_ll_main()
144 handles.netif_addr = our_ip; in skt_flow_req_ll_main()
150 skt_flow_req_low_latency(AF_INET, &our_ip, &dst_ip, IPPROTO_TCP, 1234, 1234); in skt_flow_req_ll_main()
162 our_ip = sktc_feth0_in_addr(); in skt_flow_config_main()
169 handles.netif_addr = our_ip; in skt_flow_config_main()
175 flow = sktu_create_nexus_flow(&handles, AF_INET, &our_ip, &dst_ip, IPPROTO_TCP, 1234, 1234); in skt_flow_config_main()
243 our_ip = sktc_feth0_in_addr(); in skt_flow_req_main()
252 handles.netif_addr = our_ip; in skt_flow_req_main()
262 skt_flow_req_should_success(AF_INET, &our_ip, &dst_ip, IPPROTO_TCP, 1234, 1234); in skt_flow_req_main()
[all …]
H A Dskt_flowlookup.c62 static struct in_addr our_ip, dst_ip, broad_ip, zero_ip; variable
104 …flow = sktu_create_nexus_flow_with_nx_port(&handles, NX_PORT, AF_INET, &our_ip, &dst_ip, IPPROTO_T… in test_tcp_flow_send()
148 …flow = sktu_create_nexus_flow_with_nx_port(&handles, NX_PORT, AF_INET, &our_ip, &dst_ip, IPPROTO_T… in test_tcp_flow_receive()
183 …s_flow_with_nx_port(&handles, NX_PORT, AF_INET, any_src_ip ? &zero_ip : &our_ip, &zero_ip, IPPROTO… in test_tcp_flow_listen()
191 …sktu_create_tcp_frames(&tx_frame, 1, IPVERSION, &dst_ip, &our_ip, dport, sport, &tx_payload, sizeo… in test_tcp_flow_listen()
205 …connection = sktu_create_nexus_flow_with_nx_port(&handles, NX_PORT, AF_INET, &our_ip, &dst_ip, IPP… in test_tcp_flow_listen()
245 …sktu_create_tcp_frames(&tx_frame, 1, IPVERSION, &dst_ip, &our_ip, dport, sport, &tx_payload, sizeo… in test_tcp_flow_listen_v6()
259 …connection = sktu_create_nexus_flow_with_nx_port(&handles, NX_PORT, AF_INET, &our_ip, &dst_ip, IPP… in test_tcp_flow_listen_v6()
292 …ip_flow = sktu_create_nexus_flow_with_nx_port(&handles, NX_PORT, AF_INET, &our_ip, &dst_ip, IPPROT… in test_ip_flow_send()
318 …ip_flow = sktu_create_nexus_flow_with_nx_port(&handles, NX_PORT, AF_INET, &our_ip, &dst_ip, IPPROT… in test_ip_flow_receive()
[all …]
H A Dskt_xfer.c2553 const char * ifname, int protocol, uint16_t flags, struct in_addr our_ip, in setup_flowswitch_and_flow() argument
2564 handles->netif_addr = our_ip; in setup_flowswitch_and_flow()
2603 const char * ifname, int protocol, uint16_t flags, struct in_addr our_ip, in fetch_if_flowswitch_and_setup_flow() argument
2616 handles->netif_addr = our_ip; in fetch_if_flowswitch_and_setup_flow()
2707 struct in_addr our_ip; in skt_xfer_udp_common() local
2732 our_ip = sktc_feth0_in_addr(); in skt_xfer_udp_common()
2738 our_ip = sktc_feth1_in_addr(); in skt_xfer_udp_common()
2754 IPPROTO_UDP, 0, our_ip, our_mask, our_port, getpid(), peer_ip, in skt_xfer_udp_common()
2760 nfr_flags, our_ip, our_mask, our_port, getpid(), peer_ip, in skt_xfer_udp_common()
2806 port.ip_addr = our_ip; in skt_xfer_udp_common()
[all …]
H A Dskt_mangle.c72 struct in_addr our_ip; member
127 &ctx->our_ip, &ctx->dst_ip, sport, dport, &tx_payload, in skt_mangle_verify_internalize_metadata()
393 inet_pton(AF_INET, utun_addr_str, &ctx.our_ip); in skt_mangle_verify_internalize_metadata_main()
402 if (sktc_ifnet_add_addr(utun_ifname, &ctx.our_ip, &mask, &broad_ip) != in skt_mangle_verify_internalize_metadata_main()
407 if (sktc_ifnet_add_scoped_default_route(utun_ifname, ctx.our_ip) != 0) { in skt_mangle_verify_internalize_metadata_main()
415 ctx.handles.netif_addr = ctx.our_ip; in skt_mangle_verify_internalize_metadata_main()
430 ctx.flow = sktu_create_nexus_flow(&ctx.handles, AF_INET, &ctx.our_ip, in skt_mangle_verify_internalize_metadata_main()
H A Dskt_reass.c559 struct in_addr our_ip, mask, broad_ip, dst_ip; in skt_reass_main() local
562 inet_pton(AF_INET, our_ip_str, &our_ip); in skt_reass_main()
568 if (sktc_ifnet_add_addr(utun_ifname, &our_ip, &mask, &broad_ip) != 0) { in skt_reass_main()
577 if (sktc_ifnet_add_scoped_default_route(utun_ifname, our_ip) != 0) { in skt_reass_main()
583 nexus.netif_addr = our_ip; in skt_reass_main()
595 AF_INET, &our_ip, &dst_ip, IPPROTO_UDP, 0, 1234); in skt_reass_main()
H A Dskt_netifdirect.c128 const struct in6_addr *our_ip, in skt_add_netif_ipv6_flow() argument
142 if (our_ip) { in skt_add_netif_ipv6_flow()
146 bcopy(our_ip, &sin6->sin6_addr, sizeof(*our_ip)); in skt_add_netif_ipv6_flow()
167 const char *ifname, struct in6_addr *our_ip, struct in6_addr *peer_ip, in skt_setup_netif_with_ipv6_flow() argument
174 handles->netif_ip6_addr = *our_ip; in skt_setup_netif_with_ipv6_flow()
183 skt_add_netif_ipv6_flow(handles, our_ip, peer_ip, in skt_setup_netif_with_ipv6_flow()
/xnu-11417.121.6/bsd/net/
H A Dif_bridge.c5794 bool our_ip = false;
5802 our_ip = in_addr_is_ours(dst_ip);
5807 our_ip = in6_addr_is_ours(&hdr->ip6_dst, index);
5809 return our_ip;
5849 bool our_ip;
5852 our_ip = in_addr_is_ours(ipaddr->ip);
5854 our_ip = in6_addr_is_ours(&ipaddr->ip6, index);
5856 return our_ip;