| /xnu-11417.140.69/bsd/netinet6/ |
| H A D | udp6_usrreq.c | 308 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 D | esp_input.c | 560 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 D | ipsec.c | 1259 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 D | esp_output.c | 717 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 D | udp6_output.c | 453 udp6->uh_sport = in6p->in6p_lport; /* lport is always set in the PCB */ in udp6_output()
|
| /xnu-11417.140.69/bsd/netinet/ |
| H A D | udp.h | 80 u_short uh_sport; /* source port */ member
|
| H A D | udp_usrreq.c | 368 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 D | udp_var.h | 83 #define ui_sport ui_u.uh_sport
|
| H A D | udp_log.c | 553 local_port = uh->uh_sport; in udp_log_drop_pcb() 558 foreign_port = uh->uh_sport; in udp_log_drop_pcb()
|
| H A D | ip_compat.h | 554 __u16 uh_sport;
|
| /xnu-11417.140.69/bsd/net/ |
| H A D | pf.c | 4160 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 D | if_ports_used.c | 1586 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 D | pktap.c | 1022 fport = uh.uh_sport; in pktap_fill_proc_info() 1089 fport = uh.uh_sport; in pktap_fill_proc_info()
|
| H A D | bpf.c | 3701 sport = EXTRACT_SHORT(&udphdr.uh_sport); in get_udp_trunc_len()
|
| H A D | necp.c | 11358 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 D | if_bridge.c | 8060 if (udphdr.uh_sport != HTONS_IPPORT_BOOTPC ||
|
| /xnu-11417.140.69/bsd/skywalk/nexus/flowswitch/flow/ |
| H A D | flow_classifier.c | 381 __DECONST(uint32_t *, &udph->uh_sport), in flow_pkt_classify()
|
| H A D | flow_track.c | 983 uh->uh_sport = fe->fe_key.fk_sport; in flow_track_abort_quic()
|
| /xnu-11417.140.69/tests/ |
| H A D | net_test_lib.c | 251 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 D | net_bridge.c | 426 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 D | kdp_udp.c | 119 u_short uh_sport; /* source port */ member 136 #define ui_sport ui_u.uh_sport
|
| /xnu-11417.140.69/tests/skywalk/ |
| H A D | skt_netifdirect.c | 238 udp_hdr.uh_sport = htons(src_port); in skt_netif_ipv6_udp_frame_populate()
|
| H A D | skt_xfer.c | 478 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 D | skywalk_test_utils.c | 2549 udp->uh_sport = htons(sport); in sktu_create_udp_frames()
|
| /xnu-11417.140.69/bsd/skywalk/nexus/ |
| H A D | nexus_traffic_rule.c | 486 bcopy(__DECONST(void *, &udph->uh_sport), &td->inet_lport, in fill_inet_td()
|