Home
last modified time | relevance | path

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

/xnu-11417.140.69/bsd/netinet6/
H A Dudp6_usrreq.c308 fromsa.sin6_port = uh->uh_sport; in udp6_input()
344 udp_in6.sin6_port = uh->uh_sport; in udp6_input()
423 in6p->in6p_fport != uh->uh_sport)) { in udp6_input()
434 uh->uh_dport, uh->uh_sport, &ip6->ip6_dst, in udp6_input()
521 uh->uh_sport == ntohs((u_short)esp_udp_encap_port))) { in udp6_input()
526 uh->uh_sport, ip6_input_getsrcifscope(m)); in udp6_input()
578 in6p = in6_pcblookup_hash(&udbinfo, &ip6->ip6_src, uh->uh_sport, ip6_input_getsrcifscope(m), in udp6_input()
592 ntohs(uh->uh_sport)); in udp6_input()
599 ntohs(uh->uh_sport)); in udp6_input()
622 uh->uh_sport, &ip6->ip6_dst, &ip6->ip6_src, ifp, pf_tag, NULL, NULL, NULL, NULL)) { in udp6_input()
[all …]
H A Desp_input.c560 if (encap_uh->uh_sport && in esp4_input_extended()
561 ntohs(encap_uh->uh_sport) != sav->remote_ike_port) { in esp4_input_extended()
562 sav->remote_ike_port = ntohs(encap_uh->uh_sport); in esp4_input_extended()
816 sav->natt_encapsulated_src_port = udp->uh_sport; in esp4_input_extended()
817 } else if (sav->natt_encapsulated_src_port != udp->uh_sport) { /* something wrong */ in esp4_input_extended()
823 udp->uh_sport = htons(sav->remote_ike_port); in esp4_input_extended()
1266 if (encap_uh->uh_sport && in esp6_input_extended()
1267 ntohs(encap_uh->uh_sport) != sav->remote_ike_port) { in esp6_input_extended()
1268 sav->remote_ike_port = ntohs(encap_uh->uh_sport); in esp6_input_extended()
H A Dipsec.c1259 SIN(&spidx->src)->sin_port = uh.uh_sport; in ipsec4_get_ulp()
1362 SIN6(&spidx->src)->sin6_port = uh.uh_sport; in ipsec6_get_ulp()
5220 uh->uh_sport = (u_short)sav->natt_encapsulated_src_port; in ipsec_send_natt_keepalive()
5222 uh->uh_sport = htons((u_short)esp_udp_encap_port); in ipsec_send_natt_keepalive()
5224 uh->uh_sport = htons((u_short)esp_udp_encap_port); in ipsec_send_natt_keepalive()
5294 uh->uh_sport = (u_short)sav->natt_encapsulated_src_port; in ipsec_send_natt_keepalive()
5296 uh->uh_sport = htons((u_short)esp_udp_encap_port); in ipsec_send_natt_keepalive()
5441 uh->uh_sport = (u_short)sav->natt_encapsulated_src_port; in ipsec_fill_offload_frame()
5443 uh->uh_sport = htons((u_short)esp_udp_encap_port); in ipsec_fill_offload_frame()
5493 uh->uh_sport = (u_short)sav->natt_encapsulated_src_port; in ipsec_fill_offload_frame()
[all …]
H A Desp_output.c717 udp->uh_sport = (u_short)sav->natt_encapsulated_src_port; in esp_output()
719 udp->uh_sport = htons((u_short)esp_udp_encap_port); in esp_output()
H A Dudp6_output.c453 udp6->uh_sport = in6p->in6p_lport; /* lport is always set in the PCB */ in udp6_output()
/xnu-11417.140.69/bsd/netinet/
H A Dudp.h80 u_short uh_sport; /* source port */ member
H A Dudp_usrreq.c368 KERNEL_DEBUG(DBG_LAYER_IN_BEG, uh->uh_dport, uh->uh_sport, in udp_input()
425 udp_in.sin_port = uh->uh_sport; in udp_input()
492 inp->inp_fport != uh->uh_sport) { in udp_input()
538 uh->uh_dport, uh->uh_sport, &ip->ip_dst, in udp_input()
621 uh->uh_sport == ntohs((u_short)esp_udp_encap_port))) { in udp_input()
633 ipsec_fill_ip_sockaddr_4_6(&src, ip->ip_src, uh->uh_sport); in udp_input()
683 inp = in_pcblookup_hash(&udbinfo, ip->ip_src, uh->uh_sport, in udp_input()
699 ntohs(uh->uh_sport)); in udp_input()
708 ntohs(uh->uh_sport))) in udp_input()
744 uh->uh_sport, &ip->ip_dst, &ip->ip_src, ifp, pf_tag, NULL, NULL, NULL, NULL)) { in udp_input()
[all …]
H A Dudp_var.h83 #define ui_sport ui_u.uh_sport
H A Dudp_log.c553 local_port = uh->uh_sport; in udp_log_drop_pcb()
558 foreign_port = uh->uh_sport; in udp_log_drop_pcb()
H A Dip_compat.h554 __u16 uh_sport;
/xnu-11417.140.69/bsd/net/
H A Dpf.c4160 sport = pf_pd_get_hdr_udp(pd)->uh_sport; in pf_socket_lookup()
4975 sxport.port = uh->uh_sport; in pf_test_rule()
5084 &uh->uh_sport, pd->ip_sum, in pf_test_rule()
5087 sxport.port = uh->uh_sport; in pf_test_rule()
5417 &pf_pd_get_hdr_udp(pd)->uh_sport, pd->ip_sum, in pf_test_rule()
5420 sxport.port = pf_pd_get_hdr_udp(pd)->uh_sport; in pf_test_rule()
5605 if (ntohs(pf_pd_get_hdr_udp(pd)->uh_sport) == PF_IKE_PORT && in pf_test_rule()
5762 if (ntohs(uh->uh_sport) == PF_IKE_PORT && in pf_test_rule()
6047 ntohs(uh->uh_sport) == PF_IKE_PORT && in pf_test_rule()
6264 dnflow.fwa_id.src_port = ntohs(pf_pd_get_hdr_udp(pd)->uh_sport); in pf_test_dummynet()
[all …]
H A Dif_ports_used.c1586 npi.npi_foreign_port = uh.uh_sport; in if_ports_used_match_mbuf()
1591 ntohs(uh.uh_sport) == PORT_ISAKMP_NATT) { in if_ports_used_match_mbuf()
1730 npi.npi_foreign_port = uh.uh_sport; in if_ports_used_match_mbuf()
1976 npi.npi_foreign_port = uh->uh_sport; in if_ports_used_match_pkt()
H A Dpktap.c1022 fport = uh.uh_sport; in pktap_fill_proc_info()
1089 fport = uh.uh_sport; in pktap_fill_proc_info()
H A Dbpf.c3701 sport = EXTRACT_SHORT(&udphdr.uh_sport); in get_udp_trunc_len()
H A Dnecp.c11358 SIN(&local_addr)->sin_port = uh.uh_sport; in necp_ip_output_find_policy_match()
11530 SIN6(&local_addr)->sin6_port = uh.uh_sport; in necp_ip6_output_find_policy_match()
H A Dif_bridge.c8060 if (udphdr.uh_sport != HTONS_IPPORT_BOOTPC ||
/xnu-11417.140.69/bsd/skywalk/nexus/flowswitch/flow/
H A Dflow_classifier.c381 __DECONST(uint32_t *, &udph->uh_sport), in flow_pkt_classify()
H A Dflow_track.c983 uh->uh_sport = fe->fe_key.fk_sport; in flow_track_abort_quic()
/xnu-11417.140.69/tests/
H A Dnet_test_lib.c251 ip_udp->udp.uh_sport = htons(src_port); in ethernet_udp4_frame_populate()
320 ip6_udp->udp.uh_sport = htons(src_port); in ethernet_udp6_frame_populate()
H A Dnet_bridge.c426 ntohs(ip_udp->udp.uh_sport), in ip_frame_validate()
474 ntohs(ip6_udp->udp.uh_sport), in ip6_frame_validate()
/xnu-11417.140.69/osfmk/kdp/
H A Dkdp_udp.c119 u_short uh_sport; /* source port */ member
136 #define ui_sport ui_u.uh_sport
/xnu-11417.140.69/tests/skywalk/
H A Dskt_netifdirect.c238 udp_hdr.uh_sport = htons(src_port); in skt_netif_ipv6_udp_frame_populate()
H A Dskt_xfer.c478 ntohs(ip_udp->udp.uh_sport), in ip_frame_dump()
645 ip_udp->udp.uh_sport = htons(src_port); in udp_frame_populate()
H A Dskywalk_test_utils.c2549 udp->uh_sport = htons(sport); in sktu_create_udp_frames()
/xnu-11417.140.69/bsd/skywalk/nexus/
H A Dnexus_traffic_rule.c486 bcopy(__DECONST(void *, &udph->uh_sport), &td->inet_lport, in fill_inet_td()