| /xnu-8019.80.24/bsd/netinet6/ |
| H A D | udp6_usrreq.c | 299 fromsa.sin6_port = uh->uh_sport; in udp6_input() 335 udp_in6.sin6_port = uh->uh_sport; in udp6_input() 414 in6p->in6p_fport != uh->uh_sport)) { in udp6_input() 425 uh->uh_dport, uh->uh_sport, &ip6->ip6_dst, in udp6_input() 506 uh->uh_sport == ntohs((u_short)esp_udp_encap_port))) { in udp6_input() 517 uh->uh_sport, ip6_input_getdstifscope(m), ip6_input_getsrcifscope(m)); in udp6_input() 557 in6p = in6_pcblookup_hash(&udbinfo, &ip6->ip6_src, uh->uh_sport, ip6_input_getsrcifscope(m), in udp6_input() 571 ntohs(uh->uh_sport)); in udp6_input() 578 ntohs(uh->uh_sport)); in udp6_input() 593 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 | 543 if (encap_uh->uh_sport && in esp4_input_extended() 544 ntohs(encap_uh->uh_sport) != sav->remote_ike_port) { in esp4_input_extended() 545 sav->remote_ike_port = ntohs(encap_uh->uh_sport); in esp4_input_extended() 800 sav->natt_encapsulated_src_port = udp->uh_sport; in esp4_input_extended() 801 } else if (sav->natt_encapsulated_src_port != udp->uh_sport) { /* something wrong */ in esp4_input_extended() 807 udp->uh_sport = htons(sav->remote_ike_port); in esp4_input_extended() 1246 if (encap_uh->uh_sport && in esp6_input_extended() 1247 ntohs(encap_uh->uh_sport) != sav->remote_ike_port) { in esp6_input_extended() 1248 sav->remote_ike_port = ntohs(encap_uh->uh_sport); in esp6_input_extended()
|
| H A D | esp_output.c | 713 udp->uh_sport = (u_short)sav->natt_encapsulated_src_port; in esp_output() 715 udp->uh_sport = htons((u_short)esp_udp_encap_port); in esp_output()
|
| H A D | ipsec.c | 1267 uh.uh_sport; in ipsec4_get_ulp() 1371 ((struct sockaddr_in6 *)&spidx->src)->sin6_port = uh.uh_sport; in ipsec6_get_ulp() 4924 uh->uh_sport = (u_short)sav->natt_encapsulated_src_port; in ipsec_send_natt_keepalive() 4926 uh->uh_sport = htons((u_short)esp_udp_encap_port); in ipsec_send_natt_keepalive() 4928 uh->uh_sport = htons((u_short)esp_udp_encap_port); in ipsec_send_natt_keepalive() 4998 uh->uh_sport = (u_short)sav->natt_encapsulated_src_port; in ipsec_send_natt_keepalive() 5000 uh->uh_sport = htons((u_short)esp_udp_encap_port); in ipsec_send_natt_keepalive() 5112 uh->uh_sport = (u_short)sav->natt_encapsulated_src_port; in ipsec_fill_offload_frame() 5114 uh->uh_sport = htons((u_short)esp_udp_encap_port); in ipsec_fill_offload_frame()
|
| H A D | udp6_output.c | 415 udp6->uh_sport = in6p->in6p_lport; /* lport is always set in the PCB */ in udp6_output()
|
| /xnu-8019.80.24/bsd/net/ |
| H A D | sixxlowpan.c | 626 printf("source/remote ports %u/%u\n", ntohs(udp->uh_sport), ntohs(udp->uh_dport)); in compress_hdr_hc1() 627 if (ntohs(udp->uh_sport) >= SICSLOWPAN_UDP_PORT_MIN && in compress_hdr_hc1() 628 ntohs(udp->uh_sport) < SICSLOWPAN_UDP_PORT_MAX && in compress_hdr_hc1() 639 (uint8_t)((ntohs(udp->uh_sport) - SICSLOWPAN_UDP_PORT_MIN) << 4) + in compress_hdr_hc1() 734 udp->uh_sport = in uncompress_hdr_hc1()
|
| H A D | if_ports_used.c | 1295 npi.npi_foreign_port = uh.uh_sport; in if_ports_used_match_mbuf() 1300 ntohs(uh.uh_sport) == PORT_ISAKMP_NATT) { in if_ports_used_match_mbuf() 1417 npi.npi_foreign_port = uh.uh_sport; in if_ports_used_match_mbuf() 1642 npi.npi_foreign_port = uh->uh_sport; in if_ports_used_match_pkt()
|
| H A D | pf.c | 4065 sport = pd->hdr.udp->uh_sport; in pf_socket_lookup() 4858 sxport.port = uh->uh_sport; in pf_test_rule() 4967 &uh->uh_sport, pd->ip_sum, in pf_test_rule() 4970 sxport.port = uh->uh_sport; in pf_test_rule() 5301 &pd->hdr.udp->uh_sport, pd->ip_sum, in pf_test_rule() 5304 sxport.port = pd->hdr.udp->uh_sport; in pf_test_rule() 5489 if (ntohs(pd->hdr.udp->uh_sport) == PF_IKE_PORT && in pf_test_rule() 5647 if (ntohs(uh->uh_sport) == PF_IKE_PORT && in pf_test_rule() 5912 ntohs(uh->uh_sport) == PF_IKE_PORT && in pf_test_rule() 6125 dnflow.fwa_id.src_port = ntohs(pd->hdr.udp->uh_sport); in pf_test_dummynet() [all …]
|
| H A D | pktap.c | 998 fport = uh.uh_sport; in pktap_fill_proc_info() 1064 fport = uh.uh_sport; in pktap_fill_proc_info()
|
| H A D | bpf.c | 3077 sport = EXTRACT_SHORT(&udphdr.uh_sport); in get_udp_trunc_len()
|
| H A D | if_bridge.c | 7290 if (udp.uh_sport == htons(IPPORT_BOOTPC) && 7926 if (ntohs(udphdr.uh_sport) != IPPORT_BOOTPC ||
|
| H A D | necp.c | 9370 ((struct sockaddr_in *)&local_addr)->sin_port = uh.uh_sport; in necp_ip_output_find_policy_match() 9538 ((struct sockaddr_in6 *)&local_addr)->sin6_port = uh.uh_sport; in necp_ip6_output_find_policy_match()
|
| /xnu-8019.80.24/bsd/netinet/ |
| H A D | udp.h | 80 u_short uh_sport; /* source port */ member
|
| H A D | udp_usrreq.c | 346 KERNEL_DEBUG(DBG_LAYER_IN_BEG, uh->uh_dport, uh->uh_sport, in udp_input() 401 udp_in.sin_port = uh->uh_sport; in udp_input() 468 inp->inp_fport != uh->uh_sport) { in udp_input() 514 uh->uh_dport, uh->uh_sport, &ip->ip_dst, in udp_input() 590 uh->uh_sport == ntohs((u_short)esp_udp_encap_port))) { in udp_input() 601 uh->uh_sport, IFSCOPE_NONE, IFSCOPE_NONE); in udp_input() 648 inp = in_pcblookup_hash(&udbinfo, ip->ip_src, uh->uh_sport, in udp_input() 664 ntohs(uh->uh_sport)); in udp_input() 673 ntohs(uh->uh_sport))) in udp_input() 706 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 | ip_compat.h | 554 __u16 uh_sport;
|
| /xnu-8019.80.24/bsd/skywalk/nexus/flowswitch/flow/ |
| H A D | flow_classifier.c | 345 sk_copy32_8(__DECONST(uint32_t *, &udph->uh_sport), in flow_pkt_classify() 354 bcopy(__DECONST(void *, &udph->uh_sport), in flow_pkt_classify()
|
| /xnu-8019.80.24/osfmk/kdp/ |
| H A D | kdp_udp.c | 117 u_short uh_sport; /* source port */ member 134 #define ui_sport ui_u.uh_sport
|
| /xnu-8019.80.24/tests/ |
| H A D | net_bridge.c | 845 ntohs(ip_udp->udp.uh_sport), in ip_frame_validate() 893 ntohs(ip6_udp->udp.uh_sport), in ip6_frame_validate() 1023 ip_udp->udp.uh_sport = htons(src_port); in ethernet_udp4_frame_populate() 1092 ip6_udp->udp.uh_sport = htons(src_port); in ethernet_udp6_frame_populate()
|
| /xnu-8019.80.24/bsd/skywalk/nexus/flowswitch/ |
| H A D | fsw_dp.c | 3902 uh->uh_sport = fe->fe_key.fk_sport; in fsw_flow_abort_quic()
|