Home
last modified time | relevance | path

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

/xnu-8020.101.4/bsd/netinet6/
H A Dudp6_usrreq.c299 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 Desp_input.c543 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 Desp_output.c713 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 Dipsec.c1267 uh.uh_sport; in ipsec4_get_ulp()
1371 ((struct sockaddr_in6 *)&spidx->src)->sin6_port = uh.uh_sport; in ipsec6_get_ulp()
4927 uh->uh_sport = (u_short)sav->natt_encapsulated_src_port; in ipsec_send_natt_keepalive()
4929 uh->uh_sport = htons((u_short)esp_udp_encap_port); in ipsec_send_natt_keepalive()
4931 uh->uh_sport = htons((u_short)esp_udp_encap_port); in ipsec_send_natt_keepalive()
5001 uh->uh_sport = (u_short)sav->natt_encapsulated_src_port; in ipsec_send_natt_keepalive()
5003 uh->uh_sport = htons((u_short)esp_udp_encap_port); in ipsec_send_natt_keepalive()
5115 uh->uh_sport = (u_short)sav->natt_encapsulated_src_port; in ipsec_fill_offload_frame()
5117 uh->uh_sport = htons((u_short)esp_udp_encap_port); in ipsec_fill_offload_frame()
H A Dudp6_output.c415 udp6->uh_sport = in6p->in6p_lport; /* lport is always set in the PCB */ in udp6_output()
/xnu-8020.101.4/bsd/net/
H A Dsixxlowpan.c626 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 Dif_ports_used.c1292 npi.npi_foreign_port = uh.uh_sport; in if_ports_used_match_mbuf()
1297 ntohs(uh.uh_sport) == PORT_ISAKMP_NATT) { in if_ports_used_match_mbuf()
1414 npi.npi_foreign_port = uh.uh_sport; in if_ports_used_match_mbuf()
1639 npi.npi_foreign_port = uh->uh_sport; in if_ports_used_match_pkt()
H A Dpf.c4065 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 Dpktap.c993 fport = uh.uh_sport; in pktap_fill_proc_info()
1059 fport = uh.uh_sport; in pktap_fill_proc_info()
H A Dbpf.c3066 sport = EXTRACT_SHORT(&udphdr.uh_sport); in get_udp_trunc_len()
H A Dif_bridge.c7469 if (udp.uh_sport == htons(IPPORT_BOOTPC) &&
8105 if (ntohs(udphdr.uh_sport) != IPPORT_BOOTPC ||
H A Dnecp.c9736 ((struct sockaddr_in *)&local_addr)->sin_port = uh.uh_sport; in necp_ip_output_find_policy_match()
9904 ((struct sockaddr_in6 *)&local_addr)->sin6_port = uh.uh_sport; in necp_ip6_output_find_policy_match()
/xnu-8020.101.4/bsd/netinet/
H A Dudp.h80 u_short uh_sport; /* source port */ member
H A Dudp_usrreq.c346 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 Dudp_var.h83 #define ui_sport ui_u.uh_sport
H A Dip_compat.h554 __u16 uh_sport;
/xnu-8020.101.4/bsd/skywalk/nexus/flowswitch/flow/
H A Dflow_classifier.c345 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-8020.101.4/osfmk/kdp/
H A Dkdp_udp.c117 u_short uh_sport; /* source port */ member
134 #define ui_sport ui_u.uh_sport
/xnu-8020.101.4/tests/
H A Dnet_bridge.c845 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-8020.101.4/bsd/skywalk/nexus/flowswitch/
H A Dfsw_dp.c3893 uh->uh_sport = fe->fe_key.fk_sport; in fsw_flow_abort_quic()